https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120254
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2025-05-13 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Keywords| |needs-bisection, wrong-code --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- -fno-loop-interchange also fixes it and -fdisable-tree-vect does not, disabling vectorization also disables the interchange (likely due to different PRE). So this looks like a bug in loop interchange (IIRC there are some other bugs about loop interchange).