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
This commit is contained in:
Franz Sirl 2001-10-11 19:43:39 +00:00 committed by Franz Sirl
parent 4a8d0c9c68
commit a185c30264
2 changed files with 8 additions and 5 deletions

View File

@ -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.

View File

@ -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))
{