tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
authorRichard Biener <rguenther@suse.de>
Tue, 9 Jul 2019 08:04:37 +0000 (08:04 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 9 Jul 2019 08:04:37 +0000 (08:04 +0000)
commitc2851dc2896bfc0d27b32c90cafc873f67cd6727
tree767743ad55194f16a6e85de61bbaf38bafd031de
parent5e0f7ab2fb33372f298ad9333dd2dd2e44cf01cc
tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.

2019-07-09  Richard Biener  <rguenther@suse.de>

* tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
(vn_reference_lookup_3): If the main ref has no access path recorded
but orig_ref has use it to do access-path based disambiguation.
(vn_reference_lookup_pieces): Adjust.
(vn_reference_lookup): Pass down original ref if we valueized.

* gcc.dg/tree-ssa/alias-access-path-1.c: Scan fre1 dump.
* gcc.dg/tree-ssa/alias-access-path-2.c: Likewise.
* gcc.dg/tree-ssa/alias-access-path-8.c: Likewise.

From-SVN: r273294
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/alias-access-path-1.c
gcc/testsuite/gcc.dg/tree-ssa/alias-access-path-2.c
gcc/testsuite/gcc.dg/tree-ssa/alias-access-path-8.c
gcc/tree-ssa-sccvn.c