aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2017-06-08 17:15:51 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2017-06-08 15:15:51 +0000
commitee4e85b78f5dab1f297aa9278694593c18fe1ae0 (patch)
tree5490f5b728b61ce913e53ff05af703efe199fa22 /gcc/cgraph.c
parentae5512dd4fbfb031cc967fc154a534863d4c05f5 (diff)
downloadgcc-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/cgraph.c')
-rw-r--r--gcc/cgraph.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index 2cbacc7..213587e 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -2729,10 +2729,7 @@ cgraph_edge::cannot_lead_to_return_p (void)
bool
cgraph_edge::maybe_hot_p (void)
{
- /* TODO: Export profile_status from cfun->cfg to cgraph_node. */
- if (profile_info
- && opt_for_fn (caller->decl, flag_branch_probabilities)
- && !maybe_hot_count_p (NULL, count))
+ if (!maybe_hot_count_p (NULL, count))
return false;
if (caller->frequency == NODE_FREQUENCY_UNLIKELY_EXECUTED
|| (callee