OSDN Git Service

(final_biv_value): Make a note after loop_end
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Nov 1992 20:03:13 +0000 (20:03 +0000)
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Nov 1992 20:03:13 +0000 (20:03 +0000)
if we need to use NEXT_INSN (loop_end).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2725 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/unroll.c

index 29ed5ce..459a2b3 100644 (file)
@@ -2797,6 +2797,9 @@ final_biv_value (bl, loop_start, loop_end)
             case it is needed later.  */
 
          tem = gen_reg_rtx (bl->biv->mode);
+         /* Make sure loop_end is not the last insn.  */
+         if (NEXT_INSN (loop_end) == 0)
+           emit_note_after (NOTE_INSN_DELETED, loop_end);
          emit_iv_add_mult (increment, GEN_INT (loop_n_iterations),
                            bl->initial_value, tem, NEXT_INSN (loop_end));