re PR tree-optimization/85834 (ice in set_ssa_val_to, at tree-ssa-sccvn.c:3396)
authorRichard Biener <rguenther@suse.de>
Tue, 22 May 2018 11:25:14 +0000 (11:25 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 22 May 2018 11:25:14 +0000 (11:25 +0000)
commit81d5198d0093ab144c8a13b85c56ef496192f930
treeb60673aa2d1387e9620b928566b7877a2b576894
parenta6df9d9044965e3a265ead57bc516a450ad87bf6
re PR tree-optimization/85834 (ice in set_ssa_val_to, at tree-ssa-sccvn.c:3396)

2018-05-22  Richard Biener  <rguenther@suse.de>

PR tree-optimization/85834
* tree-ssa-sccvn.c (vn_reference_lookup_3): Properly handle
non-constant and non-zero memset arguments.

* g++.dg/torture/pr85834.C: New testcase.
* gcc.dg/tree-ssa/ssa-fre-64.c: Likewise.

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