tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename to ..
authorJan Hubicka <jh@suse.cz>
Tue, 2 Jul 2019 08:28:24 +0000 (10:28 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 2 Jul 2019 08:28:24 +0000 (08:28 +0000)
commit1c28d12f616b71269f1b7e1efc61c287c9b4ca38
treedd4ae2e07ac139e4f22b0dbf60499511dd8cac5c
parentf51b4aed271f256f029ed4447141a7d1e8017a8c
tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename to ..

* tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
to ..
(nonoverlapping_component_refs_since_match_p): ... this one;
handle also non-decl bases; return -1 if search gave up.
(alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
nonoverlapping_component_refs_of_decl_p_no_alias to
nonoverlapping_component_refs_since_match_p_may_alias,
nonoverlapping_component_refs_since_match_p_no_alias.
(dump_alias_stats): Update dumping.
(aliasing_matching_component_refs_p):  Break out from ...;
dispatch to nonoverlapping_component_refs_for_decl_p
and nonoverlapping_component_refs_since_match_p.
(aliasing_component_refs_p): ... here; call
nonoverlapping_component_refs_p in scenarios where we can not
precisely determine base match.
(decl_refs_may_alias_p): Use
nonoverlapping_component_refs_since_match_p.
(indirect_ref_may_alias_decl_p): Do not call
nonoverlapping_component_refs_p.
(indirect_refs_may_alias_p): Likewise.

* gcc.dg/tree-ssa/alias-access-path-7.c: New testcase.

From-SVN: r272926
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/alias-access-path-7.c [new file with mode: 0644]
gcc/tree-ssa-alias.c