]> git.feebdaed.xyz Git - 0xmirror/gcc.git/commit
[lra] take scratch as implicit unused output reloads [PR55212]
authorAlexandre Oliva <oliva@gnu.org>
Fri, 19 Dec 2025 07:57:05 +0000 (04:57 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Fri, 19 Dec 2025 07:57:05 +0000 (04:57 -0300)
commitaf1f68b4e365caa06603598ec6b5b491fc00b40b
treec7c9323122a8beea1fd8cd16abc9e436b3463d19
parent4bcb35f372ad750478199b02deabbdcfedaf199f
[lra] take scratch as implicit unused output reloads [PR55212]

When trying to convert the SH port to use LRA, the first issue I hit
was the need for dealing with former scratch registers at places we
didn't need to on other ports, treating them like unused output
reloads instead of rejecting them.

for  gcc/ChangeLog

PR target/55212
* lra-constraints.cc (match_reload): Treat former scratch
regs as implicit unused output reloads.
(process_alt_operands): Likewise.
(curr_insn_transform): Likewise.
gcc/lra-constraints.cc