re PR tree-optimization/51245 (ICE in vn_reference_insert_pieces, at tree-ssa-sccvn...
authorRichard Guenther <rguenther@suse.de>
Tue, 6 Dec 2011 11:41:00 +0000 (11:41 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 6 Dec 2011 11:41:00 +0000 (11:41 +0000)
commitb55eb41058252a2775fad91b3f77beec6fcc1b5b
tree1e6df1ddf0481659cd905e499433b41246809813
parent230f834641d980c3a31aeebb7971719721d26831
re PR tree-optimization/51245 (ICE in vn_reference_insert_pieces, at tree-ssa-sccvn.c:1983)

2011-12-06  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/51245
* tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
New function.
(vn_reference_lookup_3): Use it.  Properly valueize all refs
we create.

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

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