aboutsummaryrefslogtreecommitdiff
path: root/gcc/unroll.c
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-11-09 20:03:13 +0000
committerRichard Stallman <rms@gnu.org>1992-11-09 20:03:13 +0000
commit885cde0193d3077ef645f8852f248df4196511ba (patch)
tree24b72d9df25e3a530ead7488dece33f73b8043a5 /gcc/unroll.c
parente26154aa86db2e3b004e027913e7851de8233d38 (diff)
downloadgcc-885cde0193d3077ef645f8852f248df4196511ba.zip
gcc-885cde0193d3077ef645f8852f248df4196511ba.tar.gz
gcc-885cde0193d3077ef645f8852f248df4196511ba.tar.bz2
(final_biv_value): Make a note after loop_end
if we need to use NEXT_INSN (loop_end). From-SVN: r2725
Diffstat (limited to 'gcc/unroll.c')
-rw-r--r--gcc/unroll.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/unroll.c b/gcc/unroll.c
index 29ed5ce..459a2b3 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));