projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e26154a
)
(final_biv_value): Make a note after loop_end
author
Richard Stallman
<rms@gnu.org>
Mon, 9 Nov 1992 20:03:13 +0000
(20:03 +0000)
committer
Richard Stallman
<rms@gnu.org>
Mon, 9 Nov 1992 20:03:13 +0000
(20:03 +0000)
if we need to use NEXT_INSN (loop_end).
From-SVN: r2725
gcc/unroll.c
patch
|
blob
|
history
diff --git
a/gcc/unroll.c
b/gcc/unroll.c
index 29ed5ce7acadff4e34d712d6e649c4f60946a0de..459a2b3e6eb18f5e305857dad72eccbfcd6369f1 100644
(file)
--- 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));