https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122537

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <[email protected]>:

https://gcc.gnu.org/g:06320fa8b37593f00ebc13b37d6411eb29ff8a4c

commit r16-7143-g06320fa8b37593f00ebc13b37d6411eb29ff8a4c
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.

Reply via email to