Skip DEBUG_INSNs while recognizing doloop
From-SVN: r173647
This commit is contained in:
parent
b8abece3d0
commit
ca7566250f
@ -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
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user