diff options
author | David Malcolm <dmalcolm@redhat.com> | 2013-12-09 20:38:21 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2013-12-09 20:38:21 +0000 |
commit | 0a6a6ac91c09c352acf13e491c02a6b8795d3e9a (patch) | |
tree | 9f0c39edb95562e8ddd411354ba868a780f626cf /gcc/internal-fn.c | |
parent | 99729d912d29072cc42c361cdc6bed31cb0c0e6b (diff) | |
download | gcc-0a6a6ac91c09c352acf13e491c02a6b8795d3e9a.zip gcc-0a6a6ac91c09c352acf13e491c02a6b8795d3e9a.tar.gz gcc-0a6a6ac91c09c352acf13e491c02a6b8795d3e9a.tar.bz2 |
Eliminate profile_status macro.
gcc/
* basic-block.h (profile_status): Eliminate macro.
* cfgbuild.c (find_many_sub_basic_blocks): Eliminate use of
profile_status macro in favor of profile_status_for_fn, making
use of cfun explicit.
* cfghooks.c (account_profile_record): Likewise.
* cfgloopanal.c (single_likely_exit):
* cfgrtl.c (rtl_verify_edges, rtl_account_profile_record): Likewise.
* graphite.c (graphite_finalize):
* internal-fn.c (ubsan_expand_si_overflow_addsub_check,
ubsan_expand_si_overflow_neg_check,
ubsan_expand_si_overflow_mul_check): Likewise.
* ipa-split.c (consider_split, execute_split_functions):
* loop-unroll.c (decide_peel_simple):
* optabs.c (emit_cmp_and_jump_insn_1):
* predict.c (maybe_hot_edge_p, probably_never_executed,
predictable_edge_p, probability_reliable_p, gimple_predict_edge,
tree_estimate_probability_driver, estimate_bb_frequencies,
compute_function_frequency, rebuild_frequencies): Likewise.
* profile.c (compute_branch_probabilities): Likewise.
* tree-cfg.c (gimple_account_profile_record): Likewise.
* tree-inline.c (optimize_inline_calls): Likewise.
From-SVN: r205825
Diffstat (limited to 'gcc/internal-fn.c')
-rw-r--r-- | gcc/internal-fn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/internal-fn.c b/gcc/internal-fn.c index fb1e578..8c54d98 100644 --- a/gcc/internal-fn.c +++ b/gcc/internal-fn.c @@ -194,7 +194,7 @@ ubsan_expand_si_overflow_addsub_check (tree_code code, gimple stmt) if (maybe_expand_insn (icode, 4, ops)) { last = get_last_insn (); - if (profile_status != PROFILE_ABSENT + if (profile_status_for_fn (cfun) != PROFILE_ABSENT && JUMP_P (last) && any_condjump_p (last) && !find_reg_note (last, REG_BR_PROB, 0)) @@ -285,7 +285,7 @@ ubsan_expand_si_overflow_neg_check (gimple stmt) if (maybe_expand_insn (icode, 3, ops)) { last = get_last_insn (); - if (profile_status != PROFILE_ABSENT + if (profile_status_for_fn (cfun) != PROFILE_ABSENT && JUMP_P (last) && any_condjump_p (last) && !find_reg_note (last, REG_BR_PROB, 0)) @@ -364,7 +364,7 @@ ubsan_expand_si_overflow_mul_check (gimple stmt) if (maybe_expand_insn (icode, 4, ops)) { last = get_last_insn (); - if (profile_status != PROFILE_ABSENT + if (profile_status_for_fn (cfun) != PROFILE_ABSENT && JUMP_P (last) && any_condjump_p (last) && !find_reg_note (last, REG_BR_PROB, 0)) |