diff options
author | Revital Eres <revital.eres@linaro.org> | 2011-05-11 07:40:26 +0000 |
---|---|---|
committer | Revital Eres <revitale@gcc.gnu.org> | 2011-05-11 07:40:26 +0000 |
commit | ca7566250ff8874b9bd02fb1215d0ee2ba43eef7 (patch) | |
tree | f10942cfe3e5254db2a4fa19afd22a8f0a324af4 /gcc/modulo-sched.c | |
parent | b8abece3d06f66a8fb8b2a7dcabfb54a5b397c7b (diff) | |
download | gcc-ca7566250ff8874b9bd02fb1215d0ee2ba43eef7.zip gcc-ca7566250ff8874b9bd02fb1215d0ee2ba43eef7.tar.gz gcc-ca7566250ff8874b9bd02fb1215d0ee2ba43eef7.tar.bz2 |
Skip DEBUG_INSNs while recognizing doloop
From-SVN: r173647
Diffstat (limited to 'gcc/modulo-sched.c')
-rw-r--r-- | gcc/modulo-sched.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/modulo-sched.c b/gcc/modulo-sched.c index 091c005..0f525af 100644 --- a/gcc/modulo-sched.c +++ b/gcc/modulo-sched.c @@ -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) { |