From 7841261c9904f8ff899e7bc3c09d4c7f0859287b Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sat, 22 Apr 2000 21:07:46 +0000 Subject: * loop.c (strength_reduce): Fix biv removal code. From-SVN: r33344 --- gcc/ChangeLog | 4 ++++ gcc/loop.c | 14 +------------- 2 files changed, 5 insertions(+), 13 deletions(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4b12657..ec86bbd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Sat Apr 22 22:35:38 MET DST 2000 Jan Hubicka + + * loop.c (strength_reduce): Fix biv removal code. + 2000-04-22 Richard Henderson * predict.c (estimate_probability): Examine both sides of diff --git a/gcc/loop.c b/gcc/loop.c index 1ff6a8c..db0f82f 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -4160,19 +4160,7 @@ strength_reduce (loop, insn_count, unroll_p, bct_p) INSN_LUID (p)); } /* Remove this biv from the chain. */ - if (bl->next) - { - /* We move the following giv from *bl->next into *bl. - We have to update reg_biv_class for that moved biv - to point to its new address. */ - *bl = *bl->next; - reg_biv_class[bl->regno] = bl; - } - else - { - *backbl = 0; - break; - } + *backbl = bl->next; } /* If we can't make it a giv, -- cgit v1.1