https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108754
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Vladimir Makarov <vmaka...@gcc.gnu.org>: https://gcc.gnu.org/g:7757567358a84c3774cb972350bd7ea299daaa8d commit r13-5809-g7757567358a84c3774cb972350bd7ea299daaa8d Author: Vladimir N. Makarov <vmaka...@redhat.com> Date: Fri Feb 10 12:17:07 2023 -0500 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.