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

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

https://gcc.gnu.org/g:b543575768c3d82711660f7e18b94971ff5fc325

commit r15-10726-gb543575768c3d82711660f7e18b94971ff5fc325
Author: Richard Biener <[email protected]>
Date:   Mon Jan 19 10:21:10 2026 +0100

    tree-optimization/123602 - avoid PRE-inserting abnormal SSA refs

    The following fixes an omission in find_or_generate_expression to
    check for SSA_NAME_OCCURS_IN_ABNORMAL_PHI as already done in
    create_expression_by_pieces.

            PR tree-optimization/123602
            * tree-ssa-pre.cc (find_or_generate_expression): Do not
            generate references to abnormal SSA names.

            * g++.dg/torture/pr123603.C: New testcase.

    (cherry picked from commit 134bc017ebac60eb53166998ec7efbc2e7f7e3b5)

Reply via email to