]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/118817 - fix ICE with VN CTOR simplification
authorRichard Biener <rguenther@suse.de>
Wed, 12 Feb 2025 14:01:53 +0000 (15:01 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 13 Feb 2025 07:49:35 +0000 (08:49 +0100)
commit77d01927bd7c989d431035251a5c196fe39bcec9
tree21bf35cf5d87299c2cc82a5f535340baa46b419f
parent2f33fa09aabf1e8825c7a3cb553054be32b7320c
tree-optimization/118817 - fix ICE with VN CTOR simplification

The representation of CONSTRUCTOR nodes in VN NARY and gimple_match_op
do not agree so do not attempt to marshal between them.

PR tree-optimization/118817
* tree-ssa-sccvn.cc (vn_nary_simplify): Do not process
CONSTRUCTOR NARY or update from CONSTRUCTOR simplified
gimple_match_op.

* gcc.dg/pr118817.c: New testcase.
gcc/testsuite/gcc.dg/pr118817.c [new file with mode: 0644]
gcc/tree-ssa-sccvn.cc