Skip DEBUG_INSN in loop-doloop.c

From-SVN: r173646
This commit is contained in:
Revital Eres 2011-05-11 07:12:14 +00:00 committed by Revital Eres
parent ce7b376154
commit b8abece3d0
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-05-11 Revital Eres <revital.eres@linaro.org>
* loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
instead of PREV_INSN.
2011-05-11 Revital Eres <revital.eres@linaro.org>
* modulo-sched.c (sms_schedule): Support new form of doloop pattern

View File

@ -151,7 +151,7 @@ doloop_condition_get (rtx doloop_pat)
inc = XVECEXP (PATTERN (prev_insn), 0, 1);
}
else
inc = PATTERN (PREV_INSN (doloop_pat));
inc = PATTERN (prev_insn);
/* We expect the condition to be of the form (reg != 0) */
cond = XEXP (SET_SRC (cmp), 0);
if (GET_CODE (cond) != NE || XEXP (cond, 1) != const0_rtx)