From 453331a3444fa55f687e8321630b8ae4858adf7d Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 24 Feb 1994 07:46:32 -0500 Subject: [PATCH] (maybe_eliminate_biv_1): Ignore GIV if it isn't always computed. From-SVN: r6616 --- gcc/loop.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gcc/loop.c b/gcc/loop.c index 4508a298ea1..7e8666a1a9f 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; -- 2.30.2