Commit 0a756401 by J"orn Rennecke Committed by Joern Rennecke

* unroll.c (copy_loop_body): Don't copy NOTE_INSN_LOOP_CONT.

From-SVN: r55877
parent 68e82b83
Tue Jul 30 11:21:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
* unroll.c (copy_loop_body): Don't copy NOTE_INSN_LOOP_CONT.
2002-07-30 Kazu Hirata <kazu@cs.umass.edu> 2002-07-30 Kazu Hirata <kazu@cs.umass.edu>
* fold-const.c: Fix comment typos. * fold-const.c: Fix comment typos.
......
...@@ -2258,15 +2258,15 @@ copy_loop_body (loop, copy_start, copy_end, map, exit_label, last_iteration, ...@@ -2258,15 +2258,15 @@ copy_loop_body (loop, copy_start, copy_end, map, exit_label, last_iteration,
{ {
/* VTOP notes are valid only before the loop exit test. /* VTOP notes are valid only before the loop exit test.
If placed anywhere else, loop may generate bad code. If placed anywhere else, loop may generate bad code.
There is no need to test for NOTE_INSN_LOOP_CONT notes Although COPY_NOTES_FROM will be at most one or two (for cc0)
here, since COPY_NOTES_FROM will be at most one or two (for cc0) instructions before the last insn in the loop, COPY_NOTES_FROM
instructions before the last insn in the loop, and if the can be a NOTE_INSN_LOOP_CONT note if there is no VTOP note,
end test is that short, there will be a VTOP note between as in a do .. while loop. */
the CONT note and the test. */
if (GET_CODE (insn) == NOTE if (GET_CODE (insn) == NOTE
&& NOTE_LINE_NUMBER (insn) != NOTE_INSN_DELETED && NOTE_LINE_NUMBER (insn) != NOTE_INSN_DELETED
&& NOTE_LINE_NUMBER (insn) != NOTE_INSN_BASIC_BLOCK && NOTE_LINE_NUMBER (insn) != NOTE_INSN_BASIC_BLOCK
&& NOTE_LINE_NUMBER (insn) != NOTE_INSN_LOOP_VTOP) && NOTE_LINE_NUMBER (insn) != NOTE_INSN_LOOP_VTOP
&& NOTE_LINE_NUMBER (insn) != NOTE_INSN_LOOP_CONT)
emit_note (NOTE_SOURCE_FILE (insn), NOTE_LINE_NUMBER (insn)); emit_note (NOTE_SOURCE_FILE (insn), NOTE_LINE_NUMBER (insn));
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment