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

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

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

commit r10-9262-gedb7dbc25de455300ce066a2ebe728256ea46e3a
Author: Richard Biener <rguent...@suse.de>
Date:   Mon Jan 4 11:40:40 2021 +0100

    tree-optimization/98282 - classify V_C_E<constant> as nary

    This avoids running into memory reference code in compute_avail by
    properly classifying unfolded reference trees on constants.

    2021-01-04  Richard Biener  <rguent...@suse.de>

            PR tree-optimization/98282
            * tree-ssa-sccvn.c (vn_get_stmt_kind): Classify tcc_reference on
            invariants as VN_NARY.

            * g++.dg/opt/pr98282.C: New testcase.

    (cherry picked from commit 13b80a7d1b9b712651f5ece589634a6e57c26362)

Reply via email to