re PR tree-optimization/91756 (g++.dg/lto/alias-3 FAILs)
authorRichard Biener <rguenther@suse.de>
Mon, 16 Sep 2019 11:58:35 +0000 (11:58 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 16 Sep 2019 11:58:35 +0000 (11:58 +0000)
commit10f30ac9cda947d117e50f0cbd4cf94ee70a944f
treee3d30cc89a219df83c072e2c386756aa17aff19d
parentddc1a45b373ce98929d0d67e8c97ab6783236c40
re PR tree-optimization/91756 (g++.dg/lto/alias-3 FAILs)

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

PR tree-optimization/91756
PR tree-optimization/87132
* tree-ssa-alias.h (enum translate_flags): New.
(get_continuation_for_phi): Use it instead of simple bool flag.
(walk_non_aliased_vuses): Likewise.
* tree-ssa-alias.c (maybe_skip_until): Adjust.
(get_continuation_for_phi): When looking across backedges only
disallow valueization.
(walk_non_aliased_vuses): Adjust.
* tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
if requested.

* gcc.dg/tree-ssa/ssa-fre-81.c: New testcase.

From-SVN: r275747
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-81.c [new file with mode: 0644]
gcc/tree-ssa-alias.c
gcc/tree-ssa-alias.h
gcc/tree-ssa-sccvn.c