diff options
Diffstat (limited to 'gcc/bb-reorder.c')
-rw-r--r-- | gcc/bb-reorder.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c index afac18843ba..c739eb6b546 100644 --- a/gcc/bb-reorder.c +++ b/gcc/bb-reorder.c @@ -1306,8 +1306,8 @@ mark_bb_for_unlikely_executed_section (basic_block bb) for (cur_insn = BB_HEAD (bb); cur_insn != NEXT_INSN (BB_END (bb)); cur_insn = NEXT_INSN (cur_insn)) - if (GET_CODE (cur_insn) != NOTE - && GET_CODE (cur_insn) != CODE_LABEL) + if (!NOTE_P (cur_insn) + && !LABEL_P (cur_insn)) { insert_insn = cur_insn; break; @@ -1360,7 +1360,7 @@ add_labels_and_missing_jumps (edge *crossing_edges, int n_crossing_edges) if (src && (src != ENTRY_BLOCK_PTR)) { - if (GET_CODE (BB_END (src)) != JUMP_INSN) + if (!JUMP_P (BB_END (src))) /* bb just falls through. */ { /* make sure there's only one successor */ @@ -1556,14 +1556,14 @@ find_jump_block (basic_block jump_dest) only one executable instruction, which is an unconditional jump. If so, we can use it. */ - if (GET_CODE (BB_HEAD (src)) == CODE_LABEL) + if (LABEL_P (BB_HEAD (src))) for (insn = BB_HEAD (src); !INSN_P (insn) && insn != NEXT_INSN (BB_END (src)); insn = NEXT_INSN (insn)) { if (INSN_P (insn) && insn == BB_END (src) - && GET_CODE (insn) == JUMP_INSN + && JUMP_P (insn) && !any_condjump_p (insn)) { source_bb = src; @@ -1763,7 +1763,7 @@ fix_crossing_unconditional_branches (void) /* Check to see if bb ends in a crossing (unconditional) jump. At this point, no crossing jumps should be conditional. */ - if (GET_CODE (last_insn) == JUMP_INSN + if (JUMP_P (last_insn) && succ->crossing_edge) { rtx label2, table; @@ -1803,7 +1803,7 @@ fix_crossing_unconditional_branches (void) cur_insn = NEXT_INSN (cur_insn)) { BLOCK_FOR_INSN (cur_insn) = cur_bb; - if (GET_CODE (cur_insn) == JUMP_INSN) + if (JUMP_P (cur_insn)) jump_insn = cur_insn; } @@ -1833,7 +1833,7 @@ add_reg_crossing_jump_notes (void) FOR_EACH_BB (bb) for (e = bb->succ; e; e = e->succ_next) if (e->crossing_edge - && GET_CODE (BB_END (e->src)) == JUMP_INSN) + && JUMP_P (BB_END (e->src))) REG_NOTES (BB_END (e->src)) = gen_rtx_EXPR_LIST (REG_CROSSING_JUMP, NULL_RTX, REG_NOTES (BB_END |