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

--- Comment #7 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:52b53cfb5392257536fce8dd22ea60412ceaee7d

commit r16-4020-g52b53cfb5392257536fce8dd22ea60412ceaee7d
Author: Richard Biener <[email protected]>
Date:   Mon Sep 22 10:14:31 2025 +0200

    tree-optimization/122016 - PRE insertion breaks abnormal coalescing

    When PRE asks VN to simplify a NARY but not insert, that bypasses
    the abnormal guard in maybe_push_res_to_seq and we blindly accept
    new uses of abnormals.  The following fixes this.

            PR tree-optimization/122016
            * tree-ssa-sccvn.cc (vn_nary_simplify): Do not use the
            simplified expression when it references abnormals.

            * gcc.dg/torture/pr122016.c: New testcase.

Reply via email to