From 27312bf2148af2bea946fcec8f4c2e1231e8d63b Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Fri, 25 May 2018 13:08:28 +0000 Subject: tree-ssa-alias.h (refs_may_alias_p): Add tbaa_p bool parameter, defaulted to true. 2018-05-25 Richard Biener * tree-ssa-alias.h (refs_may_alias_p): Add tbaa_p bool parameter, defaulted to true. (ref_maybe_used_by_stmt_p): Likewise. (stmt_may_clobber_ref_p): Likewise. (stmt_may_clobber_ref_p_1): Likewise. * tree-ssa-alias.c (refs_may_alias_p): Add tbaa_p bool parameter and pass it along. (ref_maybe_used_by_stmt_p): Likewise. (stmt_may_clobber_ref_p): Likewise. (stmt_may_clobber_ref_p_1): Likewise. * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Use the alias oracle to disambiguate DRs with stmts DR analysis couldn't handle. (vect_analyze_data_refs): Do not give up on not analyzable DRs for BB vectorization. Remove code truncating the dataref vector. From-SVN: r260757 --- gcc/tree-ssa-alias.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gcc/tree-ssa-alias.h') diff --git a/gcc/tree-ssa-alias.h b/gcc/tree-ssa-alias.h index 88554e8..2ecc04d6 100644 --- a/gcc/tree-ssa-alias.h +++ b/gcc/tree-ssa-alias.h @@ -118,15 +118,15 @@ extern bool ptr_derefs_may_alias_p (tree, tree); extern bool ptrs_compare_unequal (tree, tree); extern bool ref_may_alias_global_p (tree); extern bool ref_may_alias_global_p (ao_ref *); -extern bool refs_may_alias_p (tree, tree); +extern bool refs_may_alias_p (tree, tree, bool = true); extern bool refs_may_alias_p_1 (ao_ref *, ao_ref *, bool); extern bool refs_anti_dependent_p (tree, tree); extern bool refs_output_dependent_p (tree, tree); -extern bool ref_maybe_used_by_stmt_p (gimple *, tree); -extern bool ref_maybe_used_by_stmt_p (gimple *, ao_ref *); +extern bool ref_maybe_used_by_stmt_p (gimple *, tree, bool = true); +extern bool ref_maybe_used_by_stmt_p (gimple *, ao_ref *, bool = true); extern bool stmt_may_clobber_global_p (gimple *); -extern bool stmt_may_clobber_ref_p (gimple *, tree); -extern bool stmt_may_clobber_ref_p_1 (gimple *, ao_ref *); +extern bool stmt_may_clobber_ref_p (gimple *, tree, bool = true); +extern bool stmt_may_clobber_ref_p_1 (gimple *, ao_ref *, bool = true); extern bool call_may_clobber_ref_p (gcall *, tree); extern bool call_may_clobber_ref_p_1 (gcall *, ao_ref *); extern bool stmt_kills_ref_p (gimple *, tree); -- cgit v1.1