From: Revital Eres Date: Wed, 11 May 2011 07:40:26 +0000 (+0000) Subject: Skip DEBUG_INSNs while recognizing doloop X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ca7566250ff8874b9bd02fb1215d0ee2ba43eef7;p=gcc.git Skip DEBUG_INSNs while recognizing doloop From-SVN: r173647 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1ea9d00f1ad..60e7c764557 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-05-11 Revital Eres + + * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while + recognizing doloop. + 2011-05-11 Revital Eres * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn diff --git a/gcc/modulo-sched.c b/gcc/modulo-sched.c index 091c0059e5c..0f525afb676 100644 --- a/gcc/modulo-sched.c +++ b/gcc/modulo-sched.c @@ -310,10 +310,10 @@ doloop_register_get (rtx head ATTRIBUTE_UNUSED, rtx tail ATTRIBUTE_UNUSED) either a single (parallel) branch-on-count or a (non-parallel) branch immediately preceded by a single (decrement) insn. */ first_insn_not_to_check = (GET_CODE (PATTERN (tail)) == PARALLEL ? tail - : PREV_INSN (tail)); + : prev_nondebug_insn (tail)); for (insn = head; insn != first_insn_not_to_check; insn = NEXT_INSN (insn)) - if (reg_mentioned_p (reg, insn)) + if (reg_mentioned_p (reg, insn) && !DEBUG_INSN_P (insn)) { if (dump_file) {