re PR tree-optimization/82264 (ICE in vn_phi_lookup at gcc/tree-ssa-sccvn.c:3125)
authorRichard Biener <rguenther@suse.de>
Wed, 20 Sep 2017 11:08:35 +0000 (11:08 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 20 Sep 2017 11:08:35 +0000 (11:08 +0000)
commit2a9000795c721f5d4117dfb0832f272769d9b2a6
tree1f4ea118b3a2c957c8a13e23975c5adbde54f8b5
parent88272c019414e6558db9c6c72053415fa88e0b5e
re PR tree-optimization/82264 (ICE in vn_phi_lookup at gcc/tree-ssa-sccvn.c:3125)

2017-09-20  Richard Biener  <rguenther@suse.de>

PR tree-optimization/82264
* tree-ssa-sccvn.c (vn_phi_eq): Use safe_dyn_cast to check
for GIMPLE_CONDs.
(vn_phi_lookup): Likewise.
(vn_phi_insert): Likewise.

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

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