re PR fortran/90738 (gfortran.dg/pointer_array_10.f90 etc. FAIL)
authorRichard Biener <rguenther@suse.de>
Tue, 4 Jun 2019 08:09:16 +0000 (08:09 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 4 Jun 2019 08:09:16 +0000 (08:09 +0000)
commitd62887a42bc49963179b0429f6914b050dd2517c
tree2c3f3f6536f8853ae2e74c1391744c9067e29be9
parentc3af5442898aadc277f95732fd40287a2d5cfc86
re PR fortran/90738 (gfortran.dg/pointer_array_10.f90 etc. FAIL)

2019-06-04  Richard Biener  <rguenther@suse.de>

PR tree-optimization/90738
Revert
2019-06-03  Richard Biener  <rguenther@suse.de>

* tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
full reference tree and record in ref->ref.
(vn_reference_lookup_3): Pass in original ref to
ao_ref_init_from_vn_reference.
(vn_reference_lookup): Likewise.
* tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
* tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
Handle non-decl bases in the original reference.

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

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

From-SVN: r271902
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr90738.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/alias-access-path-1.c
gcc/tree-ssa-alias.c
gcc/tree-ssa-sccvn.c
gcc/tree-ssa-sccvn.h