aboutsummaryrefslogtreecommitdiff
path: root/gcc/tracer.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/tracer.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/tracer.c')
-rw-r--r--gcc/tracer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tracer.c b/gcc/tracer.c
index bb44673..0b7f4da 100644
--- a/gcc/tracer.c
+++ b/gcc/tracer.c
@@ -270,7 +270,7 @@ tail_duplicate (void)
bitmap_clear (bb_seen);
initialize_original_copy_tables ();
- if (profile_info && flag_branch_probabilities)
+ if (profile_info && profile_status_for_fn (cfun) == PROFILE_READ)
probability_cutoff = PARAM_VALUE (TRACER_MIN_BRANCH_PROBABILITY_FEEDBACK);
else
probability_cutoff = PARAM_VALUE (TRACER_MIN_BRANCH_PROBABILITY);
@@ -290,7 +290,7 @@ tail_duplicate (void)
weighted_insns += n * bb->frequency;
}
- if (profile_info && flag_branch_probabilities)
+ if (profile_info && profile_status_for_fn (cfun) == PROFILE_READ)
cover_insns = PARAM_VALUE (TRACER_DYNAMIC_COVERAGE_FEEDBACK);
else
cover_insns = PARAM_VALUE (TRACER_DYNAMIC_COVERAGE);