aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-cp.c
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2013-02-21 16:05:27 +0000
committerMartin Jambor <mjambor@suse.cz>2013-02-21 16:05:27 +0000
commitcf5b5956f7435381d627fff3a9bea2619a016291 (patch)
treec37ce024ad81107e37507d1c3715d853e762516d /gcc/ipa-cp.c
parentd95016bab343495b985d61f4e79417cc95c1a5be (diff)
2013-02-21 Martin Jambor <mjambor@suse.cz>
* ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold instead of hard-wired defaults. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@196206 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-cp.c')
-rw-r--r--gcc/ipa-cp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c
index c79f277d61b..45c109392a1 100644
--- a/gcc/ipa-cp.c
+++ b/gcc/ipa-cp.c
@@ -1654,7 +1654,7 @@ good_cloning_opportunity_p (struct cgraph_node *node, int time_benefit,
") -> evaluation: " HOST_WIDEST_INT_PRINT_DEC
", threshold: %i\n",
time_benefit, size_cost, (HOST_WIDE_INT) count_sum,
- evaluation, 500);
+ evaluation, PARAM_VALUE (PARAM_IPA_CP_EVAL_THRESHOLD));
return evaluation >= PARAM_VALUE (PARAM_IPA_CP_EVAL_THRESHOLD);
}
@@ -1668,7 +1668,7 @@ good_cloning_opportunity_p (struct cgraph_node *node, int time_benefit,
"size: %i, freq_sum: %i) -> evaluation: "
HOST_WIDEST_INT_PRINT_DEC ", threshold: %i\n",
time_benefit, size_cost, freq_sum, evaluation,
- CGRAPH_FREQ_BASE /2);
+ PARAM_VALUE (PARAM_IPA_CP_EVAL_THRESHOLD));
return evaluation >= PARAM_VALUE (PARAM_IPA_CP_EVAL_THRESHOLD);
}