OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6259288
)
(final_biv_value): Make a note after loop_end
author
rms
<rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Nov 1992 20:03:13 +0000
(20:03 +0000)
committer
rms
<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
patch
|
blob
|
history
diff --git
a/gcc/unroll.c
b/gcc/unroll.c
index
29ed5ce
..
459a2b3
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));