]> git.ipfire.org Git - thirdparty/gcc.git/commit
RA: Use caller save equivalent memory only for LRA
authorVladimir N. Makarov <vmakarov@redhat.com>
Fri, 10 Feb 2023 17:17:07 +0000 (12:17 -0500)
committerVladimir N. Makarov <vmakarov@redhat.com>
Fri, 10 Feb 2023 17:17:07 +0000 (12:17 -0500)
commit7757567358a84c3774cb972350bd7ea299daaa8d
tree6296e7524f96029a845071b9404bf73d948378dd
parent3c5154d0f0d2185b518465b264ca17fb7c60c1e8
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