re PR tree-optimization/56384 (ICE in fold_binary_loc, at fold-const.c:10422)
authorRichard Biener <rguenther@suse.de>
Tue, 19 Feb 2013 12:10:48 +0000 (12:10 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 19 Feb 2013 12:10:48 +0000 (12:10 +0000)
commit24d630163b15482845ffef8c733653281008016f
tree9b4aeec6f3f6f83ed0fdf40cc3955ca4432abfbf
parent47cc28f568eff9f93ad63ca2cb730b865232f441
re PR tree-optimization/56384 (ICE in fold_binary_loc, at fold-const.c:10422)

2013-02-19  Richard Biener  <rguenther@suse.de>

PR tree-optimization/56384
* tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
(vn_hash_type): Split out from ...
(vn_hash_constant_with_type): ... here.
* tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
(vn_phi_eq): Compare types from vn_phi_s structure.
(vn_phi_lookup): Populate vn_phi_s type.
(vn_phi_insert): Likewise.

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

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