diff options
author | sirl <sirl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-11 19:43:39 +0000 |
---|---|---|
committer | sirl <sirl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-11 19:43:39 +0000 |
commit | c869966001f9c4b1fc680c00b0fbf6ee0cb93197 (patch) | |
tree | 99edf83522b601ada5faf76877d2e33c2475d0ea /gcc/unroll.c | |
parent | cef0c6a0d464d388c020942e1d0b2ba7ae46e76e (diff) | |
download | ppe42-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.c | 9 |
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)) { |