diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-12-15 18:33:16 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-12-15 18:33:16 +0000 |
commit | f3c5599aa61f6ff7e3504c5b9eee7aa78f0b2cd9 (patch) | |
tree | f70601c4ad50f577441d71322c0beea7b6cfbaa3 /gcc/tree-ssa-sccvn.c | |
parent | d1856d2c87b844afb0e31f7aa9502745b3446189 (diff) | |
download | gcc-f3c5599aa61f6ff7e3504c5b9eee7aa78f0b2cd9.tar.gz |
2014-12-15 Richard Biener <rguenther@suse.de>
PR tree-optimization/64312
* tree-ssa-sccvn.c (vn_reference_lookup_pieces): Use
vuse_ssa_val as callback to walk_non_aliased_vuses.
(vn_reference_lookup): Likewise.
* g++.dg/torture/pr64312.C: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218756 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-sccvn.c')
-rw-r--r-- | gcc/tree-ssa-sccvn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c index d7a4742caf6..9902723b673 100644 --- a/gcc/tree-ssa-sccvn.c +++ b/gcc/tree-ssa-sccvn.c @@ -2161,7 +2161,7 @@ vn_reference_lookup_pieces (tree vuse, alias_set_type set, tree type, (vn_reference_t)walk_non_aliased_vuses (&r, vr1.vuse, vn_reference_lookup_2, vn_reference_lookup_3, - vn_valueize, &vr1); + vuse_ssa_val, &vr1); gcc_checking_assert (vr1.operands == shared_lookup_references); } @@ -2214,7 +2214,7 @@ vn_reference_lookup (tree op, tree vuse, vn_lookup_kind kind, (vn_reference_t)walk_non_aliased_vuses (&r, vr1.vuse, vn_reference_lookup_2, vn_reference_lookup_3, - vn_valueize, &vr1); + vuse_ssa_val, &vr1); gcc_checking_assert (vr1.operands == shared_lookup_references); if (wvnresult) { |