https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87678
--- Comment #10 from Uroš Bizjak <ubizjak at gmail dot com> --- (In reply to Segher Boessenkool from comment #9) > Ah. So you want this optimisation (which is currently done by LRA) to be > done > by combine as well; it's not that the resulting assembler code for this > testcase > is worse than what you'd like to see. And what you want combine to do is > just > do a substitution (and no simplification, none with known values at least). > > I agree with that. I also want the latter to be done after every split pass, > for the insns touched by that split anyway :-) Please also note that LRA is not able to propagate PIC memory address, as reported in the description, so the resulting asm is not optimal.