aboutsummaryrefslogtreecommitdiff
path: root/gcc/loop.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-02-24 07:46:32 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1994-02-24 07:46:32 -0500
commit453331a3444fa55f687e8321630b8ae4858adf7d (patch)
tree147fb26436754853f4c1a5a5d1de27bdc0d5859d /gcc/loop.c
parentf67ff5de60fced297f9e770a5be85ecbb96b6551 (diff)
downloadgcc-453331a3444fa55f687e8321630b8ae4858adf7d.zip
gcc-453331a3444fa55f687e8321630b8ae4858adf7d.tar.gz
gcc-453331a3444fa55f687e8321630b8ae4858adf7d.tar.bz2
(maybe_eliminate_biv_1): Ignore GIV if it isn't always computed.
From-SVN: r6616
Diffstat (limited to 'gcc/loop.c')
-rw-r--r--gcc/loop.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/loop.c b/gcc/loop.c
index 4508a29..7e8666a 100644
--- a/gcc/loop.c
+++ b/gcc/loop.c
@@ -5971,7 +5971,7 @@ maybe_eliminate_biv_1 (x, insn, bl, eliminate_p, where)
for (v = bl->giv; v; v = v->next_iv)
if (CONSTANT_P (v->mult_val) && v->mult_val != const0_rtx
&& v->add_val == const0_rtx
- && ! v->ignore && ! v->maybe_dead
+ && ! v->ignore && ! v->maybe_dead && v->always_computable
&& v->mode == mode)
{
if (! eliminate_p)
@@ -5996,7 +5996,7 @@ maybe_eliminate_biv_1 (x, insn, bl, eliminate_p, where)
for (v = bl->giv; v; v = v->next_iv)
if (CONSTANT_P (v->mult_val) && v->mult_val != const0_rtx
- && ! v->ignore && ! v->maybe_dead
+ && ! v->ignore && ! v->maybe_dead && v->always_computable
&& v->mode == mode)
{
if (! eliminate_p)
@@ -6053,7 +6053,7 @@ maybe_eliminate_biv_1 (x, insn, bl, eliminate_p, where)
for (v = bl->giv; v; v = v->next_iv)
if (CONSTANT_P (v->mult_val) && INTVAL (v->mult_val) > 0
&& CONSTANT_P (v->add_val)
- && ! v->ignore && ! v->maybe_dead
+ && ! v->ignore && ! v->maybe_dead && v->always_computable
&& v->mode == mode)
{
if (! eliminate_p)
@@ -6089,7 +6089,7 @@ maybe_eliminate_biv_1 (x, insn, bl, eliminate_p, where)
for (v = bl->giv; v; v = v->next_iv)
if (CONSTANT_P (v->mult_val) && INTVAL (v->mult_val) > 0
- && ! v->ignore && ! v->maybe_dead
+ && ! v->ignore && ! v->maybe_dead && v->always_computable
&& v->mode == mode)
{
rtx tem;
@@ -6120,7 +6120,7 @@ maybe_eliminate_biv_1 (x, insn, bl, eliminate_p, where)
for (v = bl->giv; v; v = v->next_iv)
if (CONSTANT_P (v->mult_val) && INTVAL (v->mult_val) > 0
- && ! v->ignore && ! v->maybe_dead
+ && ! v->ignore && ! v->maybe_dead && v->always_computable
&& v->mode == mode)
{
rtx tem;