Commit 885cde01 by Richard Stallman

(final_biv_value): Make a note after loop_end

if we need to use NEXT_INSN (loop_end).

From-SVN: r2725
parent e26154aa
...@@ -2797,6 +2797,9 @@ final_biv_value (bl, loop_start, loop_end) ...@@ -2797,6 +2797,9 @@ final_biv_value (bl, loop_start, loop_end)
case it is needed later. */ case it is needed later. */
tem = gen_reg_rtx (bl->biv->mode); 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), emit_iv_add_mult (increment, GEN_INT (loop_n_iterations),
bl->initial_value, tem, NEXT_INSN (loop_end)); bl->initial_value, tem, NEXT_INSN (loop_end));
......
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