re PR tree-optimization/86062 (Missed redundancy elimination with struct and array)
authorRichard Biener <rguenther@suse.de>
Wed, 6 Jun 2018 13:03:29 +0000 (13:03 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 6 Jun 2018 13:03:29 +0000 (13:03 +0000)
commit1abc0f7f52c01e5fd1a8149eab1b5f4ad4e92fa5
tree58c12e9abe514f02b058641bd4b7b4823d151ded
parentd71488c017b4ebb932cf2b4a43656e1eda670b23
re PR tree-optimization/86062 (Missed redundancy elimination with struct and array)

2018-06-06  Richard Biener  <rguenther@suse.de>

PR tree-optimization/86062
* tree-ssa-sccvn.c (vn_reference_lookup_3): Handle arbitrary
component refs ontop
of to be offsetted base.

* g++.dg/tree-ssa/pr86062.C: New testcase.

From-SVN: r261231
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tree-ssa/pr86062.C [new file with mode: 0644]
gcc/tree-ssa-sccvn.c