tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2 parameters; return...
authorJan Hubicka <jh@suse.cz>
Thu, 4 Jul 2019 12:52:22 +0000 (14:52 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 4 Jul 2019 12:52:22 +0000 (12:52 +0000)
commitf5fa046faa7f97662312e17aaab6da9713fe7518
tree164e3da0328f43d55b11f59c68ec5cf042b6eb00
parent8862ed139a6ac3d28dc75ccbaa1dd36f47c8f9dd
tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2 parameters; return early for must-alias.

* tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
parameters; return early for must-alias.
(indirect_ref_may_alias_decl_p): Likewise; when establishing
outer types match, try nonoverlapping_component_refs
if must-alias is not obvious.
(indirect_refs_may_alias_p): Likewise.
(refs_may_alias_p_2): Likewise.

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

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