https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122537
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Richard Biener <[email protected]>: https://gcc.gnu.org/g:8e0e441b96bac253b0c2b405796a2997667afb75 commit r15-10969-g8e0e441b96bac253b0c2b405796a2997667afb75 Author: Richard Biener <[email protected]> Date: Thu Jan 29 13:56:11 2026 +0100 tree-optimization/122537 - do not elide maybe_zero condition for wrapping IV The following removes the optimization eliding the maybe_zero condition from number_of_iterations_lt_to_ne when the IV can overflow since the IV delta input is not accurately reflecting this. PR tree-optimization/122537 * tree-ssa-loop-niter.cc (number_of_iterations_lt_to_ne): Register may_be_zero condition when the IV may overflow. * gcc.dg/torture/pr122537.c: New testcase. (cherry picked from commit 06320fa8b37593f00ebc13b37d6411eb29ff8a4c)
