From 7757567358a84c3774cb972350bd7ea299daaa8d Mon Sep 17 00:00:00 2001 From: "Vladimir N. Makarov" Date: Fri, 10 Feb 2023 12:17:07 -0500 Subject: 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. --- gcc/ira.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/ira.cc b/gcc/ira.cc index d0b6ea0..9f9af80 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. */ -- cgit v1.1