diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-02 06:35:22 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-02 06:35:22 +0000 |
commit | a6171d02a801603909777e9fb99e28df087bd54a (patch) | |
tree | a5c775320421fec11cbff73e388083cc07dc1a1c /gcc/ifcvt.c | |
parent | 49860b4b8676914e5aba6441301b47fe158796e9 (diff) | |
download | gcc-a6171d02a801603909777e9fb99e28df087bd54a.tar.gz |
* ifcvt.c (dead_or_predicable): Set merge_bb->end to the insn before
the sequence we're moving, not to merge_bb->head.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33605 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ifcvt.c')
-rw-r--r-- | gcc/ifcvt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index d571a42a9c1..c1fc951a059 100644 --- a/gcc/ifcvt.c +++ b/gcc/ifcvt.c @@ -1935,10 +1935,11 @@ dead_or_predicable (test_bb, merge_bb, other_bb, new_dest, reversep) } /* Move the insns out of MERGE_BB to before the branch. */ - if (end == merge_bb->end) - merge_bb->end = merge_bb->head; if (head != NULL) { + if (end == merge_bb->end) + merge_bb->end = PREV_INSN (head); + head = squeeze_notes (head, end); if (GET_CODE (end) == NOTE && (NOTE_LINE_NUMBER (end) == NOTE_INSN_BLOCK_END |