diff options
author | Richard Biener <rguenther@suse.de> | 2024-07-24 13:16:35 +0200 |
---|---|---|
committer | Thomas Koenig <tkoenig@gcc.gnu.org> | 2024-07-28 19:05:51 +0200 |
commit | 2c8986cc98fac56857989a692901c505c0f6ec01 (patch) | |
tree | f40a33f51df51dfc4b45746ab5d3b74b330c8886 /gcc/doc | |
parent | 5a6cc54ce068be40a8d4c1608963cb3644510a4d (diff) | |
download | gcc-2c8986cc98fac56857989a692901c505c0f6ec01.zip gcc-2c8986cc98fac56857989a692901c505c0f6ec01.tar.gz gcc-2c8986cc98fac56857989a692901c505c0f6ec01.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/doc')
0 files changed, 0 insertions, 0 deletions