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

--- Comment #2 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:8ff8114e4448307f27e38fbdb98028283ab64f1c

commit r17-3363-g8ff8114e4448307f27e38fbdb98028283ab64f1c
Author: Richard Biener <[email protected]>
Date:   Tue Aug 18 09:49:12 2026 +0200

    tree-optimization/126925 - missed folding causes IVOPTs crash

    When we fail to simplify an IV candidate step to zero SCEV might
    still have simplified the before/after candidate to an IV with
    zero step.  Avoid crashing in such situation.

            PR tree-optimization/126925
            * tree-ssa-loop-ivopts.cc (create_new_iv): Avoid crashing
            if the use IV is invariant.

            * gcc.dg/torture/pr126925.c: New testcase.

Reply via email to