[Bug target/94145] Longcalls mis-optimize loading the function address
amodra at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Mar 12 13:34:10 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94145
--- Comment #8 from Alan Modra <amodra at gmail dot com> ---
(In reply to Richard Biener from comment #7)
> OTOH CSEing the load from the PLT once it is resolved _would_ be an
> optimization.
Possibly. Sometimes making the call sequence seem more efficient runs into
stalls particularly when the called function is short.
> Asks for loop peeling I guess?
Yeah, that might be one way to get the first call of a function inside a loop
over and done with. And so you'd know the PLT entry was resolved and thus no
longer volatile.
More information about the Gcc-bugs
mailing list