tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p): Rename to ...
authorJan Hubicka <hubicka@ucw.cz>
Tue, 1 Oct 2019 19:46:09 +0000 (21:46 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 1 Oct 2019 19:46:09 +0000 (19:46 +0000)
commitede31f6ffe73357705e95016046e77c7e3d6ad13
tree5735f5fe70e3ea24643d4bd94f63f78376be0482
parent11f2ce1f49f480c7ef0951bdee5c35bd7449f2bd
tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p): Rename to ...

* tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
Rename to ...
(nonoverlapping_refs_since_match_p): ... this; handle also
ARRAY_REFs.
(alias_stats): Update stats.
(dump_alias_stats): Likewise.
(cheap_array_ref_low_bound): New function.
(aliasing_matching_component_refs_p): Add partial_overlap
argument;
pass it to nonoverlapping_refs_since_match_p.
(aliasing_component_refs_walk): Update call of
aliasing_matching_component_refs_p
(nonoverlapping_array_refs_p): New function.
(decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
indirect_refs_may_alias_p): Update calls of
nonoverlapping_refs_since_match_p.

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

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