https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120675
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Last reconfirmed| |2025-06-19
CC| |rguenth at gcc dot gnu.org
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed - we have no code to perform store "hoisting", we cannot sink the
store beyond the store to a[i]. Peeling an iteration would make the in-loop
store redundant.
Loop distribution could eventually handle this, but dependence analysis
fails here (and for some reason the partition with b[0] still pulls in
the loop).
The LIM pass fails to handle this in its dependence analysis - but it would
also delay the store to b[0], breaking the code.