diff options
author | Jeffrey A Law <law@cygnus.com> | 1999-04-07 13:22:29 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1999-04-07 07:22:29 -0600 |
commit | 94d5c4563ffc5fdb44851687b3531d5fd4a0d2cc (patch) | |
tree | 842879527821198c1034c16f3cb5adf0d4483640 /gcc/unroll.c | |
parent | 6ed173d03b97ef5657f2d316235674ae0f61f812 (diff) | |
download | gcc-94d5c4563ffc5fdb44851687b3531d5fd4a0d2cc.zip gcc-94d5c4563ffc5fdb44851687b3531d5fd4a0d2cc.tar.gz gcc-94d5c4563ffc5fdb44851687b3531d5fd4a0d2cc.tar.bz2 |
unroll.c (copy_loop_body): Always ensure at least two insns are in the copied loop.
* unroll.c (copy_loop_body): Always ensure at least two insns
are in the copied loop.
From-SVN: r26261
Diffstat (limited to 'gcc/unroll.c')
-rw-r--r-- | gcc/unroll.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/unroll.c b/gcc/unroll.c index e119352..9c0109d 100644 --- a/gcc/unroll.c +++ b/gcc/unroll.c @@ -1671,6 +1671,12 @@ copy_loop_body (copy_start, copy_end, map, exit_label, last_iteration, start_sequence (); + /* Emit a NOTE_INSN_DELETED to force at least two insns onto the sequence. + Else gen_sequence could return a raw pattern for a jump which we pass + off to emit_insn_before (instead of emit_jump_insn_before) which causes + a variety of losing behaviors later. */ + emit_note (0, NOTE_INSN_DELETED); + insn = copy_start; do { |