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

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

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

commit r12-10895-gc8b549857d968d634a74709112e5acc9f9caf35c
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)
  • [Bug tree-optimization/116057] ... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to