[Bug tree-optimization/126925] [13/14/15/16 Regression] ICE at -O3 on x86_64-linux-gnu: Segmentation fault during GIMPLE pass: ivopts

"cvs-commit at gcc dot gnu.org via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
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)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.