re PR tree-optimization/92751 (VN partial def support confused about clobbers)
authorRichard Biener <rguenther@suse.de>
Tue, 3 Dec 2019 10:46:52 +0000 (10:46 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 3 Dec 2019 10:46:52 +0000 (10:46 +0000)
commit89ee3a872fdf460402d1fc137e5cdce20f62bc8e
treedf1eaf56a9937444db526351efb2b1ab571fc9b6
parent1058a2262b9dc15c164dec5261a9b3daad84e6d6
re PR tree-optimization/92751 (VN partial def support confused about clobbers)

2019-12-03  Richard Biener  <rguenther@suse.de>

PR tree-optimization/92751
* tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
when a clobber ends up in the partial-def vector.
(vn_reference_lookup_3): Let clobbers be handled by the
assignment from CTOR handling.

* g++.dg/tree-ssa/pr92751.C: New testcase.

From-SVN: r278931
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tree-ssa/pr92751.C [new file with mode: 0644]
gcc/tree-ssa-sccvn.c