[Bug tree-optimization/101394] [9 Regression] ICE on valid code with -O2: SSA corruption: Unable to coalesce ssa_names 10 and 19 which are marked as MUST COALESCE.

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Oct 13 10:09:25 GMT 2021


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

--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:

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

commit r9-9771-ga091e66e510804a29ba2a685b027f5d15aa69f1b
Author: Richard Biener <rguenther@suse.de>
Date:   Mon Jul 12 10:49:03 2021 +0200

    tree-optimization/101394 - fix PRE full redundancy wrt abnormals

    This avoids adding a copy from an abnormal picked up from PHI
    translation much like we'd avoid inserting the translated
    expression on pred edges.

    2021-07-12  Richard Biener  <rguenther@suse.de>

            PR tree-optimization/101394
            * tree-ssa-pre.c (do_pre_regular_insertion): Avoid inserting
            copies from abnormals for a full redundancy.

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

    (cherry picked from commit 92343e0ba4d47f21ae20ffcb83d736bdbc15dae0)


More information about the Gcc-bugs mailing list