https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128942
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- The key here is that at -Os we do not copy loop headers so the latch isn't empty and contains the not executed stmts.
rguenth at gcc dot gnu.org via Gcc-bugs Mon, 23 Nov 2026 05:19:49 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128942
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- The key here is that at -Os we do not copy loop headers so the latch isn't empty and contains the not executed stmts.