Commit c956720a by J"orn Rennecke Committed by Joern Rennecke

unroll.c (copy_loop_body): Don't make extra copies of NOTE_INSN_LOOP_CONT notes.

	* unroll.c (copy_loop_body): Don't make extra copies of
	NOTE_INSN_LOOP_CONT notes.

From-SVN: r25535
parent 83fdb191
Tue Mar 2 16:45:31 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
* unroll.c (copy_loop_body): Don't make extra copies of
NOTE_INSN_LOOP_CONT notes.
Tue Mar 2 07:44:56 1999 Mark Mitchell <mark@markmitchell.com> Tue Mar 2 07:44:56 1999 Mark Mitchell <mark@markmitchell.com>
* tree.c (save_tree_status): Don't treat functions with no context * tree.c (save_tree_status): Don't treat functions with no context
......
...@@ -2127,15 +2127,16 @@ copy_loop_body (copy_start, copy_end, map, exit_label, last_iteration, ...@@ -2127,15 +2127,16 @@ copy_loop_body (copy_start, copy_end, map, exit_label, last_iteration,
break; break;
case NOTE: case NOTE:
/* VTOP notes are valid only before the loop exit test. If placed /* VTOP and CONT notes are valid only before the loop exit test.
anywhere else, loop may generate bad code. */ If placed anywhere else, loop may generate bad code. */
/* BASIC_BLOCK notes exist to stabilize basic block structures with /* BASIC_BLOCK notes exist to stabilize basic block structures with
the associated rtl. We do not want to share the structure in the associated rtl. We do not want to share the structure in
this new block. */ this new block. */
if (NOTE_LINE_NUMBER (insn) != NOTE_INSN_DELETED if (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)
|| (last_iteration && unroll_type != UNROLL_COMPLETELY))) || (last_iteration && unroll_type != UNROLL_COMPLETELY)))
copy = emit_note (NOTE_SOURCE_FILE (insn), copy = emit_note (NOTE_SOURCE_FILE (insn),
NOTE_LINE_NUMBER (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