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

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Aldy Hernandez <[email protected]>:

https://gcc.gnu.org/g:016544ba03c93eb8f40924ac8eaa2da10f850dbd

commit r17-3595-g016544ba03c93eb8f40924ac8eaa2da10f850dbd
Author: Aldy Hernandez <[email protected]>
Date:   Sat Aug 22 13:06:08 2026 +0000

    Abstract out can_duplicate_block_on_edge_p from tree-ssa-threadedge.cc
[PR126896]

    Both the jump threader's joiner registration and the upcoming phiopt
    replication of PHI-of-compares joins need a way to determine if a
    block on an edge can be duplicated.  Abstract out the code in
    tree-ssa-threadedge.cc to be reusable by the upcoming work.

            PR tree-optimization/126896

    gcc/ChangeLog:

            * cfghooks.cc (can_duplicate_block_on_edge_p): New.
            * cfghooks.h (can_duplicate_block_on_edge_p): Declare.
            * tree-ssa-threadedge.cc: Include cfghooks.h.
            (jump_threader::thread_across_edge): Use
            can_duplicate_block_on_edge_p.

Reply via email to