https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126999
--- Comment #2 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:8dcf4a63cf3f9fcceed9235066055f0ad7ef09ab commit r17-3644-g8dcf4a63cf3f9fcceed9235066055f0ad7ef09ab Author: Andrew MacLeod <[email protected]> Date: Mon Aug 24 13:55:40 2026 -0400 Save the edge in remove_unreachable. Instead of saving the endpoints, save the edge in case blocks are split. PR tree-optimization/126999 gcc/ * tree-vrp.cc (remove_unreachable::m_list): Change from a std::pair to an edge vector. (remove_unreachable::maybe_register): Save edge. (remove_unreachable::remove): Use the edge. (remove_unreachable::remove_and_update_globals): Likewise. gcc/testsuite/ * gcc.dg/pr126999.c: New.
