diff --git a/gcc/ira.cc b/gcc/ira.cc index d0b6ea062e8..9f9af808f63 100644 --- a/gcc/ira.cc +++ b/gcc/ira.cc @@ -3773,7 +3773,7 @@ update_equiv_regs (void) { note = set_unique_reg_note (insn, REG_EQUIV, replacement); } - else + else if (ira_use_lra_p) { /* We still can use this equivalence for caller save optimization in LRA. Mark this. */