https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121345
--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Andrew Macleod <[email protected]>: https://gcc.gnu.org/g:beba09b5c5a2f4ec4e75e5f6d3dd1e2494b04a2b commit r16-5324-gbeba09b5c5a2f4ec4e75e5f6d3dd1e2494b04a2b Author: Andrew MacLeod <[email protected]> Date: Fri Nov 14 16:11:30 2025 -0500 Allow single PHI initial values. There are some single PHI groups that can benefit from an initial value. Also improve the iteration calculation by bounding each iteration with the known global value. PR tree-optimization/121345 gcc/ * gimple-range-phi.cc (phi_group::phi_group): Add modifier name. (phi_group::is_modifier_p): Set modifier stmt operand name. (phi_group::calculate_using_modifier): Bound the iteration range by known global range. (phi_analyzer::process_phi): Allow single PHIS if they meet certain criteria. * gimple-range-phi.h (m_modifier_name): New member. (is_modifier_p): Adjust prototype. gcc/testsuite/ * g++.dg/pr121345.C: New.
