re PR tree-optimization/71059 (gcc ICE at -O3 on valid code on x86_64-linux-gnu in...
authorRichard Biener <rguenther@suse.de>
Thu, 12 May 2016 13:46:26 +0000 (13:46 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 12 May 2016 13:46:26 +0000 (13:46 +0000)
commit1ef33ef304cedbeca446e79d677cd18036a5dc66
tree08146efd808e84c14b2bdd4c476c5540b75f9f33
parent763baff6f54ec6070e0ec6497363f5116ab4c874
re PR tree-optimization/71059 (gcc ICE at -O3 on valid code on x86_64-linux-gnu in "vn_nary_op_insert_into")

2016-05-12  Richard Biener  <rguenther@suse.de>

PR tree-optimization/71059
* tree-ssa-pre.c (phi_translate_1): Fully fold translated
nary before looking up or entering the expression into the VN
hashes.
* tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
Make sure to re-use NARYs without result as inserted by
phi-translation.

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

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