[Bug tree-optimization/126965] [17 Regression] ICE on valid code at -O{2, 3} with -fno-tree-dominator-opts on x86_64-linux-gnu: Segmentation fault since r17-2788

"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=126965

--- 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:dfd857530e0bda541d4112c5c19bda0567b521ef

commit r17-3501-gdfd857530e0bda541d4112c5c19bda0567b521ef
Author: Richard Biener <[email protected]>
Date:   Fri Aug 21 09:36:27 2026 +0200

    tree-optimization/126965 - limit recursive PRE expression generation

    As I've recently figured the PRE value graph can have cycles so
    when recursively generating a complex expression that should be
    prone to run into those cycles as well.  PR126965 now has a testcase
    for that, so limit recursinve expression generation.

            PR tree-optimization/126965
            * tree-ssa-pre.cc (find_or_generate_expression): Limit
            recursion depth.

            * gcc.dg/tree-ssa/ssa-pre-37.c: New testcase.
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.