https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111730
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The difference between -O1 and -O2 is -O2 removes the empty loops.
pinskia at gcc dot gnu.org via Gcc-bugs Sun, 08 Oct 2023 19:08:33 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111730
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The difference between -O1 and -O2 is -O2 removes the empty loops.