https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128434
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
This is a known non-optimization by SLP scheduling (there are some floating
patches attempting to address this). But sinking should fix this up, so it
shouldn't be an actual issue - ah, but that will refuse to sink into a loop.
The compiler doesn't know that OP_INIT is only executed at most once so
I'd expect invariant motion to eventuall hoist the vector initialization
as well ...