From 885cde0193d3077ef645f8852f248df4196511ba Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Mon, 9 Nov 1992 20:03:13 +0000 Subject: [PATCH] (final_biv_value): Make a note after loop_end if we need to use NEXT_INSN (loop_end). From-SVN: r2725 --- gcc/unroll.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/unroll.c b/gcc/unroll.c index 29ed5ce7aca..459a2b3e6eb 100644 --- a/gcc/unroll.c +++ b/gcc/unroll.c @@ -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)); -- 2.30.2