From: Revital Eres Date: Mon, 16 May 2011 06:11:46 +0000 (+0000) Subject: Fix condition in doloop_register_get X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2ab2cf4d194d3859276be7226fa05cdfb8c31a7;p=gcc.git Fix condition in doloop_register_get From-SVN: r173786 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cf183347c40..0ef7fb5ac6d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-05-16 Revital Eres + + * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P + first. + 2011-05-15 Uros Bizjak * config/i386/i386.md (floating point move splitters): Fix diff --git a/gcc/modulo-sched.c b/gcc/modulo-sched.c index 4937a56a7c4..327c09aefed 100644 --- a/gcc/modulo-sched.c +++ b/gcc/modulo-sched.c @@ -316,7 +316,7 @@ doloop_register_get (rtx head ATTRIBUTE_UNUSED, rtx tail ATTRIBUTE_UNUSED) : prev_nondebug_insn (tail)); for (insn = head; insn != first_insn_not_to_check; insn = NEXT_INSN (insn)) - if (reg_mentioned_p (reg, insn) && !DEBUG_INSN_P (insn)) + if (!DEBUG_INSN_P (insn) && reg_mentioned_p (reg, insn)) { if (dump_file) {