summaryrefslogtreecommitdiffstats
path: root/gcc/unroll.c
diff options
context:
space:
mode:
authorsirl <sirl@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-11 19:43:39 +0000
committersirl <sirl@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-11 19:43:39 +0000
commitc869966001f9c4b1fc680c00b0fbf6ee0cb93197 (patch)
tree99edf83522b601ada5faf76877d2e33c2475d0ea /gcc/unroll.c
parentcef0c6a0d464d388c020942e1d0b2ba7ae46e76e (diff)
downloadppe42-gcc-c869966001f9c4b1fc680c00b0fbf6ee0cb93197.tar.gz
ppe42-gcc-c869966001f9c4b1fc680c00b0fbf6ee0cb93197.zip
2001-10-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* unroll.c (loop_iterations): Fixup last patch. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46197 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/unroll.c')
-rw-r--r--gcc/unroll.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/unroll.c b/gcc/unroll.c
index efb9de1db54..4e15336b020 100644
--- a/gcc/unroll.c
+++ b/gcc/unroll.c
@@ -3527,12 +3527,11 @@ loop_iterations (loop)
do
{
- /* Previous unrolling may have generated new insns not covered
- by the uid_luid array. */
- if (INSN_UID (temp) >= max_uid_for_loop)
- continue;
-
if (GET_CODE (temp) == JUMP_INSN
+ /* Previous unrolling may have generated new insns not covered
+ by the uid_luid array. */
+ && INSN_UID (JUMP_LABEL (temp)) < max_uid_for_loop
+ /* Check if we jump back into the loop body. */
&& INSN_LUID (JUMP_LABEL (temp)) > INSN_LUID (loop->top)
&& INSN_LUID (JUMP_LABEL (temp)) < INSN_LUID (loop->cont))
{
OpenPOWER on IntegriCloud