https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116751
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|unknown |15.0 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Component|middle-end |tree-optimization Last reconfirmed| |2024-09-18 Keywords| |missed-optimization --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Unroll heuristic is (too) easily confused here I guess. Note we need to unroll all loops completely to be able to optimize this.