diff options
author | Marek Polacek <polacek@redhat.com> | 2016-09-26 15:50:13 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2016-09-26 15:50:13 +0000 |
commit | 8e4284d0b24bd3c745c054054d673ed306d30467 (patch) | |
tree | d6490f3739ae65b50b309780a2c142f73d79ed1b /gcc/sanopt.c | |
parent | 6e13996688c8111bc917b9015a0f5fbc936e035d (diff) | |
download | gcc-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/sanopt.c')
-rw-r--r-- | gcc/sanopt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/sanopt.c b/gcc/sanopt.c index eeb4cd0..27c43da 100644 --- a/gcc/sanopt.c +++ b/gcc/sanopt.c @@ -686,8 +686,7 @@ pass_sanopt::execute (function *fun) 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_ASAN_CHECK) + if (gimple_call_internal_p (stmt, IFN_ASAN_CHECK)) ++asan_num_accesses; } } |