diff options
author | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-01-29 07:46:16 +0000 |
---|---|---|
committer | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-01-29 07:46:16 +0000 |
commit | 29f7fe60e1133e2b7316fe2db806b1ea7eefb18d (patch) | |
tree | 7a237834792c780015a493d83365bced2b7f9aef /gcc/loop.c | |
parent | 05d87d2c6956f5418e2e10f71cfb0e1aa914954a (diff) | |
download | gcc-29f7fe60e1133e2b7316fe2db806b1ea7eefb18d.tar.gz |
* loop.c (strength_reduce): Fix HAVE_cc0 handling when scanning
forward from cont dominator.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24903 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop.c')
-rw-r--r-- | gcc/loop.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/loop.c b/gcc/loop.c index 1acbb33ab1c..23d1323b703 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -4036,11 +4036,10 @@ strength_reduce (scan_start, end, loop_top, insn_count, && ! reg_used_between_p (giv, giv_insn, loop_end)) { rtx p; + rtx next; - for (;;) + for (next = NEXT_INSN (dominator); ; next = NEXT_INSN (next)) { - rtx next = NEXT_INSN (dominator); - if ((GET_RTX_CLASS (GET_CODE (next)) == 'i' && (reg_mentioned_p (giv, PATTERN (next)) || reg_set_p (bl2->biv->src_reg, next))) |