re PR tree-optimization/90316 (large compile time increase in opt / alias stmt walkin...
authorRichard Biener <rguenth@gcc.gnu.org>
Tue, 7 May 2019 11:17:00 +0000 (11:17 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 7 May 2019 11:17:00 +0000 (11:17 +0000)
commit3cf8b3e341b8424d7c34c918406bd37d2feb7407
treec3079ed3fb4d622158479ef6cb1ccfc0355988ec
parentbca0a3216deff39ec9e4dcf979fff7f313ca6486
re PR tree-optimization/90316 (large compile time increase in opt / alias stmt walking for Go example)

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

PR tree-optimization/90316
* tree-ssa-alias.h (get_continuation_for_phi): Take walking
limit by reference.
(walk_non_aliased_vuses): Take walking limit argument.
* tree-ssa-alias.c (maybe_skip_until): Take limit and abort
walking if it is reached instead of just counting.
(get_continuation_for_phi): Likewise.
(walk_non_aliased_vuses): Likewise, instead of leaving counter
limiting to the callback.
* tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
(vn_reference_lookup_3): Likewise.
(vn_reference_lookup_pieces): Likewise.
(vn_reference_lookup): Likewise.
* tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
* tree-ssa-scopedtables.c (vuse_eq): Adjust.
(avail_exprs_stack::lookup_avail_expr): Likewise.

From-SVN: r270940
gcc/ChangeLog
gcc/tree-ssa-alias.c
gcc/tree-ssa-alias.h
gcc/tree-ssa-pre.c
gcc/tree-ssa-sccvn.c
gcc/tree-ssa-scopedtables.c