[Bug tree-optimization/104700] [12 Regression] ICE on valid code at -O2 and -O3 with -fno-tree-ccp -fno-tree-dce -fno-tree-vrp on x86_64-linux-gnu: in find_or_generate_expression, at tree-ssa-pre.cc:2795

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Feb 28 09:34:36 GMT 2022


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

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

https://gcc.gnu.org/g:37b583b9d7719f663656ce65ac822c11471fb540

commit r12-7408-g37b583b9d7719f663656ce65ac822c11471fb540
Author: Richard Biener <rguenther@suse.de>
Date:   Mon Feb 28 08:36:25 2022 +0100

    tree-optimization/104700 - adjust constant handling in PRE

    The following refactors find_or_generate_expression to more properly
    handle constant valued SSA names thereby simplifying the code and
    avoiding ICEing after the last change to NARY processing.

    2022-02-28  Richard Biener  <rguenther@suse.de>

            PR tree-optimization/104700
            * tree-ssa-pre.cc (get_or_alloc_expr_for): Remove and inline
            into ...
            (find_or_generate_expression): ... here, simplifying code.

            * gcc.dg/pr104700-2.c: New testcase.
            * gcc.dg/torture/pr104700-1.c: Likewise.


More information about the Gcc-bugs mailing list