diff options
author | Jim Wilson <wilson@redhat.com> | 2001-06-13 02:48:45 +0000 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 2001-06-12 19:48:45 -0700 |
commit | 97ebd24c895aa14e12209ca7040b72b45047eadb (patch) | |
tree | 3aa06e4d1418113c503f3068e4c0e8f3f7907604 /gcc/loop.c | |
parent | fe2ee7c4a717e8256283e985faee5bd7c927d69e (diff) | |
download | gcc-97ebd24c895aa14e12209ca7040b72b45047eadb.zip gcc-97ebd24c895aa14e12209ca7040b72b45047eadb.tar.gz gcc-97ebd24c895aa14e12209ca7040b72b45047eadb.tar.bz2 |
Fix for PR 3128, IA-64 linux kernel miscompile
Fix for PR 3128, IA-64 linux kernel miscompile
* loop.c (strength_reduce): Move bl->all_reduced set before
check_ext_dependant_givs call.
(check_ext_dependant_givs): Clear bl->all_reduced when ignoring givs.
From-SVN: r43298
Diffstat (limited to 'gcc/loop.c')
-rw-r--r-- | gcc/loop.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -4306,6 +4306,11 @@ strength_reduce (loop, flags) provided all givs are reduced. */ bl->eliminable = loop_biv_eliminable_p (loop, bl, threshold, insn_count); + /* This will be true at the end, if all givs which depend on this + biv have been strength reduced. + We can't (currently) eliminate the biv unless this is so. */ + bl->all_reduced = 1; + /* Check each extension dependent giv in this class to see if its root biv is safe from wrapping in the interior mode. */ check_ext_dependant_givs (bl, loop_info); @@ -4313,11 +4318,6 @@ strength_reduce (loop, flags) /* Combine all giv's for this iv_class. */ combine_givs (regs, bl); - /* This will be true at the end, if all givs which depend on this - biv have been strength reduced. - We can't (currently) eliminate the biv unless this is so. */ - bl->all_reduced = 1; - for (v = bl->giv; v; v = v->next_iv) { struct induction *tv; @@ -6660,6 +6660,7 @@ check_ext_dependant_givs (bl, loop_info) INSN_UID (v->insn), why); } v->ignore = 1; + bl->all_reduced = 0; } } } |