diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-04-07 13:22:29 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-04-07 13:22:29 +0000 |
commit | 24e420e7c93b6d3672bb94703d9be82441e658f5 (patch) | |
tree | 842879527821198c1034c16f3cb5adf0d4483640 | |
parent | 4a11631b409fb66288f7a488cd1ca5cc906402f0 (diff) | |
download | gcc-24e420e7c93b6d3672bb94703d9be82441e658f5.tar.gz |
* unroll.c (copy_loop_body): Always ensure at least two insns
are in the copied loop.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26261 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/unroll.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index da8276f3c32..d33bd4b6344 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Wed Apr 7 14:07:34 1999 Jeffrey A Law (law@cygnus.com) + + * unroll.c (copy_loop_body): Always ensure at least two insns + are in the copied loop. + Wed Apr 7 14:52:18 1999 Catherine Moore <clm@cygnus.com> * config/mips/elf.h (MAKE_DECL_ONE_ONLY): Define. diff --git a/gcc/unroll.c b/gcc/unroll.c index e119352dc8a..9c0109da86b 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 { |