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

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

https://gcc.gnu.org/g:5ec88821a111a20fe10faba574298f553d000b48

commit r16-9558-g5ec88821a111a20fe10faba574298f553d000b48
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.

    (cherry picked from commit 8ff8114e4448307f27e38fbdb98028283ab64f1c)

Reply via email to