Commit 15ac7707 by Richard Henderson Committed by Richard Henderson

ifcvt.c (dead_or_predicable): Set merge_bb->end to the insn before the sequence we're moving...

        * ifcvt.c (dead_or_predicable): Set merge_bb->end to the insn before
        the sequence we're moving, not to merge_bb->head.

From-SVN: r33605
parent 3b54e10b
2000-05-01 Richard Henderson <rth@cygnus.com> 2000-05-01 Richard Henderson <rth@cygnus.com>
* ifcvt.c (dead_or_predicable): Set merge_bb->end to the insn before
the sequence we're moving, not to merge_bb->head.
2000-05-01 Richard Henderson <rth@cygnus.com>
* configure.in (alpha*-*-linux-gnulibc1*) [tmake_file]: Remove * configure.in (alpha*-*-linux-gnulibc1*) [tmake_file]: Remove
reference to alpha/t-linux. reference to alpha/t-linux.
(alpha*-*-linux-gnu*): Likewise. (alpha*-*-linux-gnu*): Likewise.
......
...@@ -1935,10 +1935,11 @@ dead_or_predicable (test_bb, merge_bb, other_bb, new_dest, reversep) ...@@ -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. */ /* 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 (head != NULL)
{ {
if (end == merge_bb->end)
merge_bb->end = PREV_INSN (head);
head = squeeze_notes (head, end); head = squeeze_notes (head, end);
if (GET_CODE (end) == NOTE if (GET_CODE (end) == NOTE
&& (NOTE_LINE_NUMBER (end) == NOTE_INSN_BLOCK_END && (NOTE_LINE_NUMBER (end) == NOTE_INSN_BLOCK_END
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment