https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99015
--- Comment #15 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Vladimir Makarov <vmaka...@gcc.gnu.org>: https://gcc.gnu.org/g:af73c8bf5168848275bf909ee44fbb8f4973438f commit r13-9726-gaf73c8bf5168848275bf909ee44fbb8f4973438f Author: Vladimir N. Makarov <vmaka...@redhat.com> Date: Thu May 29 15:26:30 2025 -0400 [LRA]: Backporting solutions for PR112918 and PR113354 to solve PR99015 Patches for PR112918 and PR11354 depend on each other and can not be clearly applied to gcc-13 branch. So patches were modified and combined. gcc/ChangeLog: PR rtl-optimization/99015 * lra-constraints.cc (enough_allocatable_hard_regs_p): Extract from in_class_p. (in_class_p): Use it with added conditions. (process_alt_operands): Try to change class too. (curr_insn_transform): Pass true to in_class_p for reg operand win. Spill pseudo only used in the insn if the corresponding operand does not require hard register anymore.