https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123596

--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <[email protected]>:

https://gcc.gnu.org/g:4c49f8e53698cce2fc93fb31cbd190c7ff3d04c4

commit r16-7136-g4c49f8e53698cce2fc93fb31cbd190c7ff3d04c4
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.

Reply via email to