aboutsummaryrefslogtreecommitdiff
path: root/gcc/loop.c
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@gcc.gnu.org>2002-11-20 07:14:54 +0100
committerAndreas Jaeger <aj@gcc.gnu.org>2002-11-20 07:14:54 +0100
commit3bdcef4db4c668535c2561d5844f18a6b80bec47 (patch)
tree35048f66654a01191b6e7e41d9dab1f76d29d4d4 /gcc/loop.c
parentad2ae3b294ddf550c982d115d5df83bece726aac (diff)
downloadgcc-3bdcef4db4c668535c2561d5844f18a6b80bec47.zip
gcc-3bdcef4db4c668535c2561d5844f18a6b80bec47.tar.gz
gcc-3bdcef4db4c668535c2561d5844f18a6b80bec47.tar.bz2
loop.c (record_giv): Initialize not_replaceable.
* loop.c (record_giv): Initialize not_replaceable. (check_final_value): Likewise. From-SVN: r59288
Diffstat (limited to 'gcc/loop.c')
-rw-r--r--gcc/loop.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/loop.c b/gcc/loop.c
index 04f95ab..4814cdd 100644
--- a/gcc/loop.c
+++ b/gcc/loop.c
@@ -5835,7 +5835,10 @@ record_giv (loop, v, insn, src_reg, dest_reg, mult_val, add_val, ext_val,
abort ();
if (type == DEST_ADDR)
- v->replaceable = 1;
+ {
+ v->replaceable = 1;
+ v->not_replaceable = 0;
+ }
else
{
/* The giv can be replaced outright by the reduced register only if all
@@ -5870,6 +5873,7 @@ record_giv (loop, v, insn, src_reg, dest_reg, mult_val, add_val, ext_val,
using this biv anyways. */
v->replaceable = 1;
+ v->not_replaceable = 0;
for (b = bl->biv; b; b = b->next_iv)
{
if (INSN_UID (b->insn) >= max_uid_for_loop
@@ -5981,6 +5985,7 @@ check_final_value (loop, v)
rtx last_giv_use;
v->replaceable = 1;
+ v->not_replaceable = 0;
/* When trying to determine whether or not a biv increment occurs
during the lifetime of the giv, we can ignore uses of the variable