https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117105
--- Comment #3 from GCC 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:4b09e2c67ef593db171b0755b46378964421782b commit r15-5658-g4b09e2c67ef593db171b0755b46378964421782b Author: Vladimir N. Makarov <vmaka...@redhat.com> Date: Mon Nov 25 16:09:00 2024 -0500 [PR117105][LRA]: Use unique value reload pseudo for early clobber operand LRA did not generate insn satisfying insn constraints on the PR test. The reason for this is that LRA assigned the same hard reg for two conflicting reload pseudos. The two insn reload pseudos are originated from the same pseudo and LRA tried to optimize as it assigned the same value for the reload pseudos. It is an LRA optimization to minimize reload insns. The two reload pseudos conflict as one of them is an early clobber insn operands. The patch solves this problem by assigning unique value if the operand is early clobber one. gcc/ChangeLog: PR target/117105 * lra-constraints.cc (get_reload_reg): Create unique value reload pseudos for early clobbered operands. gcc/testsuite/ChangeLog: PR target/117105 * gcc.target/i386/pr117105.c: New test.