https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95464
--- Comment #1 from Vladimir Makarov <vmakarov at gcc dot gnu.org> --- Jakub, thank you for working on the PR and providing the test case. It seems to me that the problem occurs in inheritance sub-pass of LRA. It is a very complicated sub-pass. Making a fix and testing it can take a few days. But I hope to fix the PR on this week.