From: Revital Eres Date: Wed, 11 May 2011 07:12:14 +0000 (+0000) Subject: Skip DEBUG_INSN in loop-doloop.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b8abece3d06f66a8fb8b2a7dcabfb54a5b397c7b;p=gcc.git Skip DEBUG_INSN in loop-doloop.c From-SVN: r173646 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b2103c2c9a8..1ea9d00f1ad 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-05-11 Revital Eres + + * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn + instead of PREV_INSN. + 2011-05-11 Revital Eres * modulo-sched.c (sms_schedule): Support new form of doloop pattern diff --git a/gcc/loop-doloop.c b/gcc/loop-doloop.c index 1527c48500c..560d49a32f9 100644 --- a/gcc/loop-doloop.c +++ b/gcc/loop-doloop.c @@ -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)