]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/123040 - handle nary -> ifn simplification in VN
authorRichard Biener <rguenther@suse.de>
Mon, 8 Dec 2025 10:06:54 +0000 (11:06 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 8 Dec 2025 12:29:50 +0000 (13:29 +0100)
commit5a6d911ca2e253297bc2f3be9d9db2a71a244a94
tree0c3c048494b52cf3669c1c06d11df3e000007043
parent09bece00d0ec981d1b0b47ba93a67a745de3f062
tree-optimization/123040 - handle nary -> ifn simplification in VN

The following handles (by rejecting) simplifications that end up
turning a VN NARY operation into a call which would be a VN REFERENCE
and is unexpected and not handled.

PR tree-optimization/123040
* tree-ssa-sccvn.cc (vn_nary_build_or_lookup_1): Only insert
nary results.

* g++.dg/torture/pr123040.C: New testcase.
gcc/testsuite/g++.dg/torture/pr123040.C [new file with mode: 0644]
gcc/tree-ssa-sccvn.cc