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/tree-stdarg.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/tree-stdarg.c')
-rw-r--r-- | gcc/tree-stdarg.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/gcc/tree-stdarg.c b/gcc/tree-stdarg.c index f72a60b..0c5e430 100644 --- a/gcc/tree-stdarg.c +++ b/gcc/tree-stdarg.c @@ -991,16 +991,6 @@ finish: } } -/* Return true if STMT is IFN_VA_ARG. */ - -static bool -gimple_call_ifn_va_arg_p (gimple *stmt) -{ - return (is_gimple_call (stmt) - && gimple_call_internal_p (stmt) - && gimple_call_internal_fn (stmt) == IFN_VA_ARG); -} - /* Expand IFN_VA_ARGs in FUN. */ static void @@ -1018,7 +1008,7 @@ expand_ifn_va_arg_1 (function *fun) tree ap, aptype, expr, lhs, type; gimple_seq pre = NULL, post = NULL; - if (!gimple_call_ifn_va_arg_p (stmt)) + if (!gimple_call_internal_p (stmt, IFN_VA_ARG)) continue; modified = true; @@ -1116,7 +1106,7 @@ expand_ifn_va_arg (function *fun) gimple_stmt_iterator i; FOR_EACH_BB_FN (bb, fun) for (i = gsi_start_bb (bb); !gsi_end_p (i); gsi_next (&i)) - gcc_assert (!gimple_call_ifn_va_arg_p (gsi_stmt (i))); + gcc_assert (!gimple_call_internal_p (gsi_stmt (i), IFN_VA_ARG)); } } |