https://gcc.gnu.org/g:d4e439f395e807f0f7606f92288db8be9852b2f4
commit r16-5608-gd4e439f395e807f0f7606f92288db8be9852b2f4 Author: Andrew Pinski <[email protected]> Date: Mon Nov 24 23:34:45 2025 -0800 phiprop: Small compile time improvement for phiprop Now that post dom information is only needed when the new store can trap (since r16-5555-g952e145796d), only calculate it when that is the case. It was calculated on demand by r14-2051-g3124bfb14c0bdc. This just changes when we need to calculate it. Pushed as obvious. gcc/ChangeLog: * tree-ssa-phiprop.cc (propagate_with_phi): Only calculate on demand post dom info when the new store might trap. Signed-off-by: Andrew Pinski <[email protected]> Diff: --- gcc/tree-ssa-phiprop.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/tree-ssa-phiprop.cc b/gcc/tree-ssa-phiprop.cc index 04aa138f521c..0c840b182e02 100644 --- a/gcc/tree-ssa-phiprop.cc +++ b/gcc/tree-ssa-phiprop.cc @@ -339,7 +339,8 @@ propagate_with_phi (basic_block bb, gphi *vphi, gphi *phi, tree vuse; bool delay = false; - if (!dom_info_available_p (cfun, CDI_POST_DOMINATORS)) + if (canpossible_trap + && !dom_info_available_p (cfun, CDI_POST_DOMINATORS)) calculate_dominance_info (CDI_POST_DOMINATORS); /* Only replace loads in blocks that post-dominate the PHI node. That
