RA: Use caller save equivalent memory only for LRA
Recently I submitted a patch to reuse memory with constant address for caller saves optimization for constant or pure function call. It seems to work only for targets using LRA instead of the old reload pass. So the patch switches off this optimization when the old reload pass is used. PR middle-end/108754 gcc/ChangeLog: * ira.cc (update_equiv_regs): Set up ira_reg_equiv for valid_combine only when ira_use_lra_p is true.
This commit is contained in:
parent
3c5154d0f0
commit
7757567358
1 changed files with 1 additions and 1 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Reference in a new issue