diff options
author | David Malcolm <dmalcolm@redhat.com> | 2013-12-09 19:53:08 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2013-12-09 19:53:08 +0000 |
commit | ea19eb9fba65626b303781048830f5db22a1cfa5 (patch) | |
tree | ec787489d8c06f8de6edf15db1529b7a23597d34 /gcc/predict.c | |
parent | 3e248e069105af09e94110b38623cbd925c2ac22 (diff) | |
download | gcc-ea19eb9fba65626b303781048830f5db22a1cfa5.zip gcc-ea19eb9fba65626b303781048830f5db22a1cfa5.tar.gz gcc-ea19eb9fba65626b303781048830f5db22a1cfa5.tar.bz2 |
Rename profile_status_for_function to profile_status_for_fn.
gcc/
* basic-block.h (profile_status_for_function): Rename to...
(profile_status_for_fn): ...this.
* cfg.c (check_bb_profile): Update for renaming.
* cgraphbuild.c (compute_call_stmt_bb_frequency): Likewise.
* lto-streamer-in.c (input_cfg): Likewise.
* lto-streamer-out.c (output_cfg): Likewise.
* predict.c (maybe_hot_frequency_p, maybe_hot_count_p,
maybe_hot_bb_p, probably_never_executed)
(handle_missing_profiles): Likewise.
* tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
* tree-inline.c (copy_bb, initialize_cfun): Likewise.
From-SVN: r205820
Diffstat (limited to 'gcc/predict.c')
-rw-r--r-- | gcc/predict.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/predict.c b/gcc/predict.c index 1cd3fa6..e959a3b 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -121,7 +121,7 @@ maybe_hot_frequency_p (struct function *fun, int freq) if (node->frequency == NODE_FREQUENCY_HOT) return true; } - if (profile_status_for_function (fun) == PROFILE_ABSENT) + if (profile_status_for_fn (fun) == PROFILE_ABSENT) return true; if (node->frequency == NODE_FREQUENCY_EXECUTED_ONCE && freq < (ENTRY_BLOCK_PTR_FOR_FN (fun)->frequency * 2 / 3)) @@ -164,7 +164,7 @@ set_hot_bb_threshold (gcov_type min) static inline bool maybe_hot_count_p (struct function *fun, gcov_type count) { - if (fun && profile_status_for_function (fun) != PROFILE_READ) + if (fun && profile_status_for_fn (fun) != PROFILE_READ) return true; /* Code executed at most once is not hot. */ if (profile_info->runs >= count) @@ -179,7 +179,7 @@ bool maybe_hot_bb_p (struct function *fun, const_basic_block bb) { gcc_checking_assert (fun); - if (profile_status_for_function (fun) == PROFILE_READ) + if (profile_status_for_fn (fun) == PROFILE_READ) return maybe_hot_count_p (fun, bb->count); return maybe_hot_frequency_p (fun, bb->frequency); } @@ -239,7 +239,7 @@ probably_never_executed (struct function *fun, gcov_type count, int frequency) { gcc_checking_assert (fun); - if (profile_status_for_function (fun) == PROFILE_READ) + if (profile_status_for_fn (fun) == PROFILE_READ) { int unlikely_count_fraction = PARAM_VALUE (UNLIKELY_BB_COUNT_FRACTION); if (count * unlikely_count_fraction >= profile_info->runs) @@ -2806,7 +2806,7 @@ drop_profile (struct cgraph_node *node, gcov_type call_count) node->name (), node->order); } - profile_status_for_function (fn) + profile_status_for_fn (fn) = (flag_guess_branch_prob ? PROFILE_GUESSED : PROFILE_ABSENT); node->frequency = hot ? NODE_FREQUENCY_HOT : NODE_FREQUENCY_NORMAL; @@ -2869,7 +2869,7 @@ handle_missing_profiles (void) if (callee->count > 0) continue; if (DECL_COMDAT (callee->decl) && fn && fn->cfg - && profile_status_for_function (fn) == PROFILE_READ) + && profile_status_for_fn (fn) == PROFILE_READ) { drop_profile (node, 0); worklist.safe_push (callee); |