diff options
Diffstat (limited to 'gcc/ifcvt.c')
-rw-r--r-- | gcc/ifcvt.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index 33c1918..b831b3e 100644 --- a/gcc/ifcvt.c +++ b/gcc/ifcvt.c @@ -1927,6 +1927,19 @@ dead_or_predicable (test_bb, merge_bb, other_bb, new_dest, reversep) if (head != NULL) { 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); + } + reorder_insns (head, end, PREV_INSN (earliest)); } return TRUE; |