https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108767
Steven Sun <StevenSun2021 at hotmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |StevenSun2021 at hotmail dot com --- Comment #2 from Steven Sun <StevenSun2021 at hotmail dot com> --- Like I just mentioned in #109190, you can check what is eaten by the analyzer. https://godbolt.org/z/Yqd11hGM6 the `for (d = 0; d <= 1; ++d)` was optimized as `for (d = 0; d != 2; ++d)` It looks like it will increase the range of `d` to `d != 2`.