https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123596
--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Richard Biener <[email protected]>: https://gcc.gnu.org/g:0a647b41065431d2124e0297585d391ea8c99db5 commit r14-12660-g0a647b41065431d2124e0297585d391ea8c99db5 Author: Richard Biener <[email protected]> Date: Thu Jan 29 10:41:16 2026 +0100 tree-optimization/123596 - fix partial virtual SSA update in eh_cleanup The following replaces the not quite correct use of mark_virtual_operand_for_renaming by an appropriate way of dealing with a possibly partially up-to-date virtual SSA form. Namely when we just move stmts and not remove a VDEF we should arrange for missing virtual PHIs to be created and just queue its arguments for possible renaming. For the testcase at hand there's no renaming necessary in the end when done this way. PR tree-optimization/123596 * tree-eh.cc (sink_clobbers): Create a virtual PHI when one is required but not present, queuing arguments for renaming. * g++.dg/torture/pr123596.C: New testcase. (cherry picked from commit 4c49f8e53698cce2fc93fb31cbd190c7ff3d04c4)
