From 8e4284d0b24bd3c745c054054d673ed306d30467 Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Mon, 26 Sep 2016 15:50:13 +0000 Subject: 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 --- gcc/ipa-split.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'gcc/ipa-split.c') diff --git a/gcc/ipa-split.c b/gcc/ipa-split.c index ac8b478..0c25fca 100644 --- a/gcc/ipa-split.c +++ b/gcc/ipa-split.c @@ -788,9 +788,7 @@ find_return_bb (void) /* For -fsanitize=thread, allow also TSAN_FUNC_EXIT () in the return bb. */ else if ((flag_sanitize & SANITIZE_THREAD) - && is_gimple_call (stmt) - && gimple_call_internal_p (stmt) - && gimple_call_internal_fn (stmt) == IFN_TSAN_FUNC_EXIT) + && gimple_call_internal_p (stmt, IFN_TSAN_FUNC_EXIT)) ; else break; @@ -1840,9 +1838,7 @@ execute_split_functions (void) } if ((flag_sanitize & SANITIZE_THREAD) - && is_gimple_call (stmt) - && gimple_call_internal_p (stmt) - && gimple_call_internal_fn (stmt) == IFN_TSAN_FUNC_EXIT) + && gimple_call_internal_p (stmt, IFN_TSAN_FUNC_EXIT)) { /* We handle TSAN_FUNC_EXIT for splitting either in the return_bb, or in its immediate predecessors. */ -- cgit v1.1