diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-05-27 01:46:21 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-05-27 01:46:21 +0000 |
commit | 61bf2994c5aeaa95affd40c3ddb4aaddc9d73048 (patch) | |
tree | b5f8235a6c1aeb362f840deb9ef6b6ea01d6f0c1 /gcc/loop.c | |
parent | 7f190f12f0425026bdd1d682f9311c260cc0718d (diff) | |
download | gcc-61bf2994c5aeaa95affd40c3ddb4aaddc9d73048.tar.gz |
* loop.c (strength_reduce): Don't do biv->giv conversion on constants.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27194 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop.c')
-rw-r--r-- | gcc/loop.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/loop.c b/gcc/loop.c index 7ee653218ca..c7047f286f0 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -4193,6 +4193,8 @@ strength_reduce (scan_start, end, loop_top, insn_count, || ! next->always_executed || next->maybe_multiple || ! CONSTANT_P (next->add_val) + || v->mult_val != const1_rtx + || next->mult_val != const1_rtx || ! (biv_dead_after_loop || no_jumps_between_p (v->insn, next->insn))) { |