[Bug target/116145] Suboptimal SVE immediate synthesis

ktkachov at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jul 31 12:15:55 GMT 2024


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116145

--- Comment #4 from ktkachov at gcc dot gnu.org ---
Intersting, thanks for the background. The bigger issue I was seeing was with a
string-matching loop like https://godbolt.org/z/E7b13915E where the constant
pool load is a reasonable codegen decision, but unfortunately every iteration
of the loop reloads the constant which would hurt in a tight inner loop.
So perhaps my problem is that the constant-pool loads are not being considered
loop invariant, or something is sinking them erroneously


More information about the Gcc-bugs mailing list