Skip DEBUG_INSNs while recognizing doloop

From-SVN: r173647
This commit is contained in:
Revital Eres 2011-05-11 07:40:26 +00:00 committed by Revital Eres
parent b8abece3d0
commit ca7566250f
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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)
{