diff options
author | rms <rms@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-11-06 21:50:29 +0000 |
---|---|---|
committer | rms <rms@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-11-06 21:50:29 +0000 |
commit | 4529e7a1e9950f9b78d8013fa242b6be4b092065 (patch) | |
tree | 4c3ab00671bd320beaff1ae3bfc864feb9db456d /gcc/unroll.c | |
parent | 3dad46dc6617a0b1c965c353d61c9e3a77a7731a (diff) | |
download | gcc-4529e7a1e9950f9b78d8013fa242b6be4b092065.tar.gz |
(unroll_loop): Don't unroll loop if jump has combined
the original loop start label with another label.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6028 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/unroll.c')
-rw-r--r-- | gcc/unroll.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/unroll.c b/gcc/unroll.c index 038c99854ec..631abcc93c0 100644 --- a/gcc/unroll.c +++ b/gcc/unroll.c @@ -600,6 +600,18 @@ unroll_loop (loop_end, insn_count, loop_start, end_insert_before, "Unrolling failure: unknown insns between BEG note and loop label.\n"); return; } + if (LABEL_NAME (start_label)) + { + /* The jump optimization pass must have combined the original start label + with a named label for a goto. We can't unroll this case because + jumps which go to the named label must be handled differently than + jumps to the loop start, and it is impossible to differentiate them + in this case. */ + if (loop_dump_stream) + fprintf (loop_dump_stream, + "Unrolling failure: loop start label is gone\n"); + return; + } if (unroll_type == UNROLL_NAIVE && GET_CODE (last_loop_insn) == BARRIER |