aboutsummaryrefslogtreecommitdiff
path: root/gcc/tsan.c
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2016-09-26 15:50:13 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2016-09-26 15:50:13 +0000
commit8e4284d0b24bd3c745c054054d673ed306d30467 (patch)
treed6490f3739ae65b50b309780a2c142f73d79ed1b /gcc/tsan.c
parent6e13996688c8111bc917b9015a0f5fbc936e035d (diff)
downloadgcc-8e4284d0b24bd3c745c054054d673ed306d30467.zip
gcc-8e4284d0b24bd3c745c054054d673ed306d30467.tar.gz
gcc-8e4284d0b24bd3c745c054054d673ed306d30467.tar.bz2
ipa-inline-analysis.c (find_foldable_builtin_expect): Use gimple_call_internal_p.
* ipa-inline-analysis.c (find_foldable_builtin_expect): Use gimple_call_internal_p. * ipa-split.c (find_return_bb): Likewise. (execute_split_functions): Likewise. * omp-low.c (dump_oacc_loop_part): Likewise. (oacc_loop_xform_head_tail): Likewise. * predict.c (predict_loops): Likewise. * sanopt.c (pass_sanopt::execute): Likewise. * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise. * tree-parloops.c (oacc_entry_exit_ok_1): Likewise. * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function. (expand_ifn_va_arg_1): Use gimple_call_internal_p. (expand_ifn_va_arg): Likewise. * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise. (optimize_mask_stores): Likewise. * tree-vect-stmts.c (vect_simd_lane_linear): Likewise. (vect_transform_stmt): Likewise. * tree-vectorizer.c (vect_loop_vectorized_call): Likewise. * tsan.c (instrument_memory_accesses): Likewise. From-SVN: r240498
Diffstat (limited to 'gcc/tsan.c')
-rw-r--r--gcc/tsan.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/tsan.c b/gcc/tsan.c
index aba21f8..91dbd41 100644
--- a/gcc/tsan.c
+++ b/gcc/tsan.c
@@ -779,9 +779,7 @@ instrument_memory_accesses (void)
for (gsi = gsi_start_bb (bb); !gsi_end_p (gsi); gsi_next (&gsi))
{
gimple *stmt = gsi_stmt (gsi);
- if (is_gimple_call (stmt)
- && gimple_call_internal_p (stmt)
- && gimple_call_internal_fn (stmt) == IFN_TSAN_FUNC_EXIT)
+ if (gimple_call_internal_p (stmt, IFN_TSAN_FUNC_EXIT))
{
if (fentry_exit_instrument)
replace_func_exit (stmt);