https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118497
--- Comment #3 from Vladimir Makarov <vmakarov at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #2) > I wonder if the patch in r15-2810-g3c67a0fa1dd39a3378deb854a7fef0ff7fe38004 > (which was reverted due to a bootstrap failure on aarch64) fixes this one > too .. No, reverting the patch did not fixed it. The problem happens before LRA. Simply a pseudo is assigned to ax in RA instead of bx as it was before. Something became wrong with the hard reg cost calculation. I'll look at this. Cost calculation is a sensitive code and can trigger new testsuite failures on different targets. So it will need a lot of testing but I hope to fix it on this week.