https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114978
--- Comment #34 from chenglulu <chenglulu at loongson dot cn> --- (In reply to Xi Ruoyao from comment #29) > For 15 r15-7525 is intended for this issue. But I don't know if it's a good > idea to backport it, as it's only a workaround, not a proper fix. > > Could someone try the diff in PR 115842 comment 6 (one time just on the > trunk, another with r15-7525 reverted)? I have tested on r15-8080, and the results are as follows: -march=la664 -mtune=la464 -Ofast -flto: 13.4 -march=la664 -mtune=la464 -Ofast -flto -maddr-reg-reg-cost=1: 13.3 -march=la664 -mtune=la464 -Ofast -flto + PR 115842 comment 6: 13.5 -march=la664 -mtune=la464 -Ofast -flto -maddr-reg-reg-cost=1 + PR 115842 comment 6: 13.3