aboutsummaryrefslogtreecommitdiff
path: root/gcc/params.def
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2012-11-23 08:49:43 +0000
committerJan Hubicka <hubicka@gcc.gnu.org>2012-11-23 08:49:43 +0000
commitb131b583978ceadbe54325be3a09710a48481df2 (patch)
treec3a33c43f2e5098a3927078c4b315cd7408551cc /gcc/params.def
parent3409d40e47ed30f1b6dca3fa074c4094efbf5b50 (diff)
downloadgcc-b131b583978ceadbe54325be3a09710a48481df2.zip
gcc-b131b583978ceadbe54325be3a09710a48481df2.tar.gz
gcc-b131b583978ceadbe54325be3a09710a48481df2.tar.bz2
predict.c (maybe_hot_count_p): Use threshold from profiled working set instead of hard limit.
* predict.c (maybe_hot_count_p): Use threshold from profiled working set instead of hard limit. (cgraph_maybe_hot_edge_p): Invoke maybe_hot_count_p() instead of directly checking limit. * params.def (HOT_BB_COUNT_FRACTION): Remove. (HOT_BB_COUNT_WS_PERMILLE): New parameter. * invoke.texi (hot-bb-count-fraction): Remove. (hot-bb-count-ws-permille): Document. Co-Authored-By: Jan Hubicka <jh@suse.cz> From-SVN: r193747
Diffstat (limited to 'gcc/params.def')
-rw-r--r--gcc/params.def11
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/params.def b/gcc/params.def
index 41177ee..38aaf4b 100644
--- a/gcc/params.def
+++ b/gcc/params.def
@@ -365,10 +365,11 @@ DEFPARAM(PARAM_SMS_LOOP_AVERAGE_COUNT_THRESHOLD,
"A threshold on the average loop count considered by the swing modulo scheduler",
0, 0, 0)
-DEFPARAM(HOT_BB_COUNT_FRACTION,
- "hot-bb-count-fraction",
- "Select fraction of the maximal count of repetitions of basic block in program given basic block needs to have to be considered hot",
- 10000, 0, 0)
+DEFPARAM(HOT_BB_COUNT_WS_PERMILLE,
+ "hot-bb-count-ws-permille",
+ "A basic block profile count is considered hot if it contributes to "
+ "the given permillage of the entire profiled execution",
+ 999, 0, 1000)
DEFPARAM(HOT_BB_FREQUENCY_FRACTION,
"hot-bb-frequency-fraction",
"Select fraction of the maximal frequency of executions of basic block in function given basic block needs to have to be considered hot",
@@ -392,7 +393,7 @@ DEFPARAM (PARAM_ALIGN_LOOP_ITERATIONS,
flatten the profile.
We need to cut the maximal predicted iterations to large enough iterations
- so the loop appears important, but safely within HOT_BB_COUNT_FRACTION
+ so the loop appears important, but safely within maximum hotness
range. */
DEFPARAM(PARAM_MAX_PREDICTED_ITERATIONS,