Commit 7a92038b by Martin Jambor Committed by Martin Jambor

ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold instead of hard-wired defaults.

2013-02-21  Martin Jambor  <mjambor@suse.cz>

	* ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
	instead of hard-wired defaults.

From-SVN: r196206
parent 4be7da26
2013-02-21 Martin Jambor <mjambor@suse.cz>
* ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
instead of hard-wired defaults.
2013-02-21 Maciej W. Rozycki <macro@codesourcery.com> 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
* doc/invoke.texi (MIPS Options): Update documentation of the * doc/invoke.texi (MIPS Options): Update documentation of the
......
...@@ -1654,7 +1654,7 @@ good_cloning_opportunity_p (struct cgraph_node *node, int time_benefit, ...@@ -1654,7 +1654,7 @@ good_cloning_opportunity_p (struct cgraph_node *node, int time_benefit,
") -> evaluation: " HOST_WIDEST_INT_PRINT_DEC ") -> evaluation: " HOST_WIDEST_INT_PRINT_DEC
", threshold: %i\n", ", threshold: %i\n",
time_benefit, size_cost, (HOST_WIDE_INT) count_sum, 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); return evaluation >= PARAM_VALUE (PARAM_IPA_CP_EVAL_THRESHOLD);
} }
...@@ -1668,7 +1668,7 @@ good_cloning_opportunity_p (struct cgraph_node *node, int time_benefit, ...@@ -1668,7 +1668,7 @@ good_cloning_opportunity_p (struct cgraph_node *node, int time_benefit,
"size: %i, freq_sum: %i) -> evaluation: " "size: %i, freq_sum: %i) -> evaluation: "
HOST_WIDEST_INT_PRINT_DEC ", threshold: %i\n", HOST_WIDEST_INT_PRINT_DEC ", threshold: %i\n",
time_benefit, size_cost, freq_sum, evaluation, 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); return evaluation >= PARAM_VALUE (PARAM_IPA_CP_EVAL_THRESHOLD);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment