https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99397
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|middle-end |tree-optimization Keywords| |missed-optimization Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2021-03-05 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- That's the long-standing issue of dependence analysis not handling mixed array and pointer access forms which means we miss distance zero computation and handling here. There's a duplicate for this. The mitigiation is to "try again" with the array access demoted to a pointer-based access (thus, analyze some alternative DR and see if dependence analysis can handle that).