re PR tree-optimization/64995 (ICE in vn_reference_insert_pieces, at tree-ssa-sccvn...
authorRichard Biener <rguenther@suse.de>
Tue, 10 Feb 2015 13:37:54 +0000 (13:37 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 10 Feb 2015 13:37:54 +0000 (13:37 +0000)
commit703c9ccdc69438c8d1931c777116ce76d22415de
treec92bf0ac60a485f33803b2ee862e103fe4440a76
parent696814edb80cfae8840213cf3e3100d0265944bd
re PR tree-optimization/64995 (ICE in vn_reference_insert_pieces, at tree-ssa-sccvn.c:2341)

2015-02-10  Richard Biener  <rguenther@suse.de>

PR tree-optimization/64995
* tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
value we use is final.
(visit_reference_op_store): Always valueize op.
(visit_use): Properly valueize vuses.

* g++.dg/torture/pr64995.C: New testcase.

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