diff options
author | Jan Hubicka <jh@suse.cz> | 2020-10-08 17:15:58 +0200 |
---|---|---|
committer | Jan Hubicka <jh@suse.cz> | 2020-10-08 17:23:16 +0200 |
commit | 3e1123e52f8eca2650efa0bc81768792d328961f (patch) | |
tree | 6d7164bbf9f936430f020bc3ef566542abdbe447 /gcc/tree-ssa-sccvn.c | |
parent | 3a9e6ee42acf1e3d00e4391ab1b1a56bb0b32ad2 (diff) | |
download | gcc-3e1123e52f8eca2650efa0bc81768792d328961f.zip gcc-3e1123e52f8eca2650efa0bc81768792d328961f.tar.gz gcc-3e1123e52f8eca2650efa0bc81768792d328961f.tar.bz2 |
Disable TBAA in some uses of call_may_clobber_ref_p
* tree-nrv.c (dest_safe_for_nrv_p): Disable tbaa in
call_may_clobber_ref_p and ref_maybe_used_by_stmt_p.
* tree-tailcall.c (find_tail_calls): Likewise.
* tree-ssa-alias.c (call_may_clobber_ref_p): Add tbaa_p parameter.
* tree-ssa-alias.h (call_may_clobber_ref_p): Update prototype.
* tree-ssa-sccvn.c (vn_reference_lookup_3): Pass data->tbaa_p
to call_may_clobber_ref_p_1.
Diffstat (limited to 'gcc/tree-ssa-sccvn.c')
-rw-r--r-- | gcc/tree-ssa-sccvn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c index 014b7bd..c139adb 100644 --- a/gcc/tree-ssa-sccvn.c +++ b/gcc/tree-ssa-sccvn.c @@ -2586,7 +2586,7 @@ vn_reference_lookup_3 (ao_ref *ref, tree vuse, void *data_, if (valueized_anything) { bool res = call_may_clobber_ref_p_1 (as_a <gcall *> (def_stmt), - ref); + ref, data->tbaa_p); for (unsigned i = 0; i < gimple_call_num_args (def_stmt); ++i) gimple_call_set_arg (def_stmt, i, oldargs[i]); if (!res) |