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

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

https://gcc.gnu.org/g:4d375ebd56c54dc8c242bed988f29094b7e3e94e

commit r15-9783-g4d375ebd56c54dc8c242bed988f29094b7e3e94e
Author: Richard Biener <[email protected]>
Date:   Wed Apr 30 11:52:17 2025 +0200

    tree-optimization/120003 - missed jump threading

    The following allows the entry and exit block of a jump thread path
    to be equal, which can easily happen when there isn't a forwarder
    on the interesting edge for an FSM thread conditional.  We just
    don't want to enlarge the path from such a block.

            PR tree-optimization/120003
            * tree-ssa-threadbackward.cc (back_threader::find_paths_to_names):
            Allow block re-use but do not enlarge the path beyond such a
            re-use.

            * gcc.dg/tree-ssa/ssa-thread-23.c: New testcase.
            * gcc.dg/tree-ssa/ssa-dom-thread-7.c: Adjust.

    (cherry picked from commit 1a13684dfc7286139064f7d7341462c9995cbd1c)

Reply via email to