https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63448
--- Comment #8 from Vladimir Makarov <vmakarov at gcc dot gnu.org> --- I already saw such problem. It is chain of spills and reassignment of non-reload pseudos. Each pass considers only 1-2 pseudos and very few insns. We just need 2 more passes to finish RA for the test. The current code of LRA looping prevention is too conservative for the case. Finally I have an idea how to solve this kind of problems. The patch is on the way.