diff options
author | Jason Merrill <jason@redhat.com> | 2001-08-22 10:51:32 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2001-08-22 10:51:32 -0400 |
commit | 2270623af33a51bb6776a775bee05f142db83e7c (patch) | |
tree | 8b1e78e7c9911f3b44410182b978347eaa7f85b7 /gcc/ifcvt.c | |
parent | fd10dd09c8c9de14a7b30deddd4e5dd8481b92f4 (diff) | |
download | gcc-2270623af33a51bb6776a775bee05f142db83e7c.zip gcc-2270623af33a51bb6776a775bee05f142db83e7c.tar.gz gcc-2270623af33a51bb6776a775bee05f142db83e7c.tar.bz2 |
jump.c (squeeze_notes): Take parms by reference.
* jump.c (squeeze_notes): Take parms by reference. Handle END being
a squeezable note.
* rtl.h: Adjust.
* ifcvt.c (dead_or_predicable): Adjust.
* loop.c (find_and_verify_loops): Adjust.
* stmt.c (expand_end_case): Adjust.
* flow.c (merge_blocks_move_successor_nojumps): Adjust. Modify the
head and end insn pointers in the basic block, not just local copies.
(merge_blocks_move_predecessor_nojumps): Likewise.
From-SVN: r45107
Diffstat (limited to 'gcc/ifcvt.c')
-rw-r--r-- | gcc/ifcvt.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index 2d86424..ee6397f 100644 --- a/gcc/ifcvt.c +++ b/gcc/ifcvt.c @@ -2667,19 +2667,7 @@ dead_or_predicable (test_bb, merge_bb, other_bb, new_dest, reversep) 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 - || NOTE_LINE_NUMBER (end) == NOTE_INSN_BLOCK_BEG - || NOTE_LINE_NUMBER (end) == NOTE_INSN_LOOP_BEG - || NOTE_LINE_NUMBER (end) == NOTE_INSN_LOOP_END - || NOTE_LINE_NUMBER (end) == NOTE_INSN_LOOP_CONT - || NOTE_LINE_NUMBER (end) == NOTE_INSN_LOOP_VTOP)) - { - if (head == end) - return TRUE; - end = PREV_INSN (end); - } + squeeze_notes (&head, &end); reorder_insns (head, end, PREV_INSN (earliest)); } |