+2011-05-11 Revital Eres <revital.eres@linaro.org>
+
+ * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
+ recognizing doloop.
+
2011-05-11 Revital Eres <revital.eres@linaro.org>
* loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
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)
{