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 <rgue...@gcc.gnu.org>:

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

commit r12-7408-g37b583b9d7719f663656ce65ac822c11471fb540
Author: Richard Biener <rguent...@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  <rguent...@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.

Reply via email to