aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorFranz Sirl <Franz.Sirl-kernel@lauterbach.com>2001-10-11 19:43:39 +0000
committerFranz Sirl <sirl@gcc.gnu.org>2001-10-11 19:43:39 +0000
commita185c302646a5ef7964ffa93c68997184a757d26 (patch)
tree99edf83522b601ada5faf76877d2e33c2475d0ea /gcc
parent4a8d0c9c68d8ce12453255695bfab8b2111dd772 (diff)
downloadgcc-a185c302646a5ef7964ffa93c68997184a757d26.zip
gcc-a185c302646a5ef7964ffa93c68997184a757d26.tar.gz
gcc-a185c302646a5ef7964ffa93c68997184a757d26.tar.bz2
unroll.c (loop_iterations): Fixup last patch.
2001-10-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> * unroll.c (loop_iterations): Fixup last patch. From-SVN: r46197
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/unroll.c9
2 files changed, 8 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7c75167..c8d660c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2001-10-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
+
+ * unroll.c (loop_iterations): Fixup last patch.
+
2001-10-11 Richard Henderson <rth@redhat.com>
* rtl.h (REG_VTABLE_REF): New.
diff --git a/gcc/unroll.c b/gcc/unroll.c
index efb9de1..4e15336 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))
{