https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126896
--- Comment #3 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:281efa39a78d0764c9df4c7513748a8bf87f78cb commit r17-3596-g281efa39a78d0764c9df4c7513748a8bf87f78cb Author: Aldy Hernandez <[email protected]> Date: Sat Aug 22 12:34:29 2026 +0000 Split edge_forwards_cmp_to_conditional_jump_through_empty_bb_p [PR126896] Split the joiner recognition in two and export the pieces: cond_on_phi_p recognizes the block we're interested in, and phi_arg_from_cmp_p recognizes the PHI argument on an edge. This lets the phiopt replication of this optimization share the DOM recognizer code. PR tree-optimization/126896 gcc/ChangeLog: * tree-ssa-threadedge.cc (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): Make static. Split into... (cond_on_phi_p): ...this... (phi_arg_from_cmp_p): ...and this. * tree-ssa-threadedge.h (cond_on_phi_p): Declare. (phi_arg_from_cmp_p): Declare.
