diff options
Diffstat (limited to 'gcc/postreload.c')
-rw-r--r-- | gcc/postreload.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/postreload.c b/gcc/postreload.c index 1213509..c4ab4f2 100644 --- a/gcc/postreload.c +++ b/gcc/postreload.c @@ -396,7 +396,7 @@ reload_cse_simplify_operands (rtx insn, rtx testreg) /* cselib blows up on CODE_LABELs. Trying to fix that doesn't seem right, so avoid the problem here. Likewise if we have a constant and the insn pattern doesn't tell us the mode we need. */ - if (GET_CODE (recog_data.operand[i]) == CODE_LABEL + if (LABEL_P (recog_data.operand[i]) || (CONSTANT_P (recog_data.operand[i]) && recog_data.operand_mode[i] == VOIDmode)) continue; @@ -721,7 +721,7 @@ reload_combine (void) FOR_EACH_BB_REVERSE (bb) { insn = BB_HEAD (bb); - if (GET_CODE (insn) == CODE_LABEL) + if (LABEL_P (insn)) { HARD_REG_SET live; @@ -752,9 +752,9 @@ reload_combine (void) /* We cannot do our optimization across labels. Invalidating all the use information we have would be costly, so we just note where the label is and then later disable any optimization that would cross it. */ - if (GET_CODE (insn) == CODE_LABEL) + if (LABEL_P (insn)) last_label_ruid = reload_combine_ruid; - else if (GET_CODE (insn) == BARRIER) + else if (BARRIER_P (insn)) for (r = 0; r < FIRST_PSEUDO_REGISTER; r++) if (! fixed_regs[r]) reg_state[r].use_index = RELOAD_COMBINE_MAX_USES; @@ -898,7 +898,7 @@ reload_combine (void) note_stores (PATTERN (insn), reload_combine_note_store, NULL); - if (GET_CODE (insn) == CALL_INSN) + if (CALL_P (insn)) { rtx link; @@ -932,7 +932,7 @@ reload_combine (void) } } - else if (GET_CODE (insn) == JUMP_INSN + else if (JUMP_P (insn) && GET_CODE (PATTERN (insn)) != RETURN) { /* Non-spill registers might be used at the call destination in @@ -1192,7 +1192,7 @@ reload_cse_move2add (rtx first) { rtx pat, note; - if (GET_CODE (insn) == CODE_LABEL) + if (LABEL_P (insn)) { move2add_last_label_luid = move2add_luid; /* We're going to increment move2add_luid twice after a @@ -1398,7 +1398,7 @@ reload_cse_move2add (rtx first) /* If this is a CALL_INSN, all call used registers are stored with unknown values. */ - if (GET_CODE (insn) == CALL_INSN) + if (CALL_P (insn)) { for (i = FIRST_PSEUDO_REGISTER - 1; i >= 0; i--) { |