re PR tree-optimization/79351 (Invalid tree PRE optimization around compound literal)
authorRichard Biener <rguenther@suse.de>
Wed, 28 Nov 2018 11:01:06 +0000 (11:01 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 28 Nov 2018 11:01:06 +0000 (11:01 +0000)
commitaa2e903e1d7f30c546b4e77f0aa71dff6c95754f
tree86f6b5a39694bf5e0465d3c350bf3f154664fd26
parent80e6a1edf9f81362dd40b062ebf81ae7592d19d9
re PR tree-optimization/79351 (Invalid tree PRE optimization around compound literal)

2018-11-28  Richard Biener  <rguenther@suse.de>

PR tree-optimization/79351
* tree-ssa-sccvn.c (vn_reference_lookup_3): For assignments from
empty CONSTRUCTORs ensure the store is at a constant position.

* gcc.dg/torture/pr79351.c: New testcase.

From-SVN: r266551
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr79351.c [new file with mode: 0644]
gcc/tree-ssa-sccvn.c