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

--- Comment #3 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:819285ef10a87d663f8c181c06aa88d1d9f75aed

commit r14-2296-g819285ef10a87d663f8c181c06aa88d1d9f75aed
Author: Richard Biener <rguent...@suse.de>
Date:   Tue Jul 4 12:52:27 2023 +0200

    tree-optimization/110491 - PHI-OPT and undefs

    The following makes sure to not make conditional undefs in PHI arguments
    unconditional by folding cond ? arg1 : arg2.

            PR tree-optimization/110491
            * tree-ssa-phiopt.cc (match_simplify_replacement): Check
            whether the PHI args are possibly undefined before folding
            the COND_EXPR.

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

Reply via email to