https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121735
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- My bet is the first iteration is peeled for -O3 which is why it does not warn there.
pinskia at gcc dot gnu.org via Gcc-bugs Sun, 31 Aug 2025 11:16:54 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121735
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- My bet is the first iteration is peeled for -O3 which is why it does not warn there.