https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120425
--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> --- -fno-tree-ch and disabling all three instances of ivcanon with -fdisable-tree-ivcanon -fdisable-tree-cunrolli -fdisable-tree-cunrol avoids this with -O1 (with -O2/-O3 there's other places where this triggers).