diff options
author | Richard Biener <rguenther@suse.de> | 2024-07-24 13:16:35 +0200 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2024-07-24 14:08:44 +0200 |
commit | 1ea551514b9c285d801ac5ab8d78b22483ff65af (patch) | |
tree | a0af14b928556e272bf211fd469f614566860a21 /gcc/gcov.cc | |
parent | 39562dd1e745c7aacc23b51b2849a7d346cbef14 (diff) | |
download | gcc-1ea551514b9c285d801ac5ab8d78b22483ff65af.zip gcc-1ea551514b9c285d801ac5ab8d78b22483ff65af.tar.gz gcc-1ea551514b9c285d801ac5ab8d78b22483ff65af.tar.bz2 |
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.
Diffstat (limited to 'gcc/gcov.cc')
0 files changed, 0 insertions, 0 deletions