https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117105
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Uros Bizjak <u...@gcc.gnu.org>: https://gcc.gnu.org/g:ea36e9d17971210762580489b71b05e7bf7faa2e commit r14-10996-gea36e9d17971210762580489b71b05e7bf7faa2e 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. (cherry picked from commit 4b09e2c67ef593db171b0755b46378964421782b)