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

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

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

commit r13-9042-gef25f1dd600cc9351c80e3e018d7170e16a2c6ff
Author: Richard Biener <rguent...@suse.de>
Date:   Wed Jul 24 13:16:35 2024 +0200

    tree-optimization/116057 - wrong code with CCP and vector CTORs

    The following fixes an issue with CCPs likely_value when faced with
    a vector CTOR containing undef SSA names and constants.  This should
    be classified as CONSTANT and not UNDEFINED.

            PR tree-optimization/116057
            * tree-ssa-ccp.cc (likely_value): Also walk CTORs in stmt
            operands to look for constants.

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

    (cherry picked from commit 1ea551514b9c285d801ac5ab8d78b22483ff65af)

Reply via email to