diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2017-06-08 17:15:51 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2017-06-08 15:15:51 +0000 |
commit | ee4e85b78f5dab1f297aa9278694593c18fe1ae0 (patch) | |
tree | 5490f5b728b61ce913e53ff05af703efe199fa22 /gcc/predict.c | |
parent | ae5512dd4fbfb031cc967fc154a534863d4c05f5 (diff) | |
download | gcc-ee4e85b78f5dab1f297aa9278694593c18fe1ae0.zip gcc-ee4e85b78f5dab1f297aa9278694593c18fe1ae0.tar.gz gcc-ee4e85b78f5dab1f297aa9278694593c18fe1ae0.tar.bz2 |
cgraph.c (cgraph_edge::maybe_hot_p): Do not check flag_branch_probabilities.
* cgraph.c (cgraph_edge::maybe_hot_p): Do not check
flag_branch_probabilities.
* ipa-inline.c (edge_badness): Likewise.
* ipa-profile.c (ipa_propagate_frequency_1): Likewise.
* postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
* predict.c (maybe_hot_frequency_p): Likewise.
(probably_never_executed): Likewise.
* sched-ebb.c (schedule_ebbs): Likewise.
* sched-rgn.c (find_single_block_region): Likewise.
* tracer.c (tail_duplicate): Likewise.
From-SVN: r249020
Diffstat (limited to 'gcc/predict.c')
-rw-r--r-- | gcc/predict.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/predict.c b/gcc/predict.c index 7c7a35d..b460a6f 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -123,8 +123,7 @@ static inline bool maybe_hot_frequency_p (struct function *fun, int freq) { struct cgraph_node *node = cgraph_node::get (fun->decl); - if (!profile_info - || !opt_for_fn (fun->decl, flag_branch_probabilities)) + if (!profile_info || profile_status_for_fn (fun) != PROFILE_READ) { if (node->frequency == NODE_FREQUENCY_UNLIKELY_EXECUTED) return false; @@ -222,7 +221,7 @@ probably_never_executed (struct function *fun, return false; return true; } - if ((!profile_info || !(opt_for_fn (fun->decl, flag_branch_probabilities))) + if ((!profile_info || profile_status_for_fn (fun) != PROFILE_READ) && (cgraph_node::get (fun->decl)->frequency == NODE_FREQUENCY_UNLIKELY_EXECUTED)) return true; |