https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104447
--- Comment #4 from CVS 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:db69f666a728ce800a840115829f6b64bc3174d2 commit r12-7278-gdb69f666a728ce800a840115829f6b64bc3174d2 Author: Vladimir N. Makarov <vmaka...@redhat.com> Date: Thu Feb 17 11:31:50 2022 -0500 [PR104447] LRA: Do not split non-alloc hard regs. LRA tried to split non-allocated hard reg for reload pseudos again and again until number of assignment passes reaches the limit. The patch fixes this. gcc/ChangeLog: PR rtl-optimization/104447 * lra-constraints.cc (spill_hard_reg_in_range): Initiate ignore hard reg set by lra_no_alloc_regs. gcc/testsuite/ChangeLog: PR rtl-optimization/104447 * gcc.target/i386/pr104447.c: New.