diff options
author | Martin Jambor <mjambor@suse.cz> | 2013-02-21 17:05:27 +0100 |
---|---|---|
committer | Martin Jambor <jamborm@gcc.gnu.org> | 2013-02-21 17:05:27 +0100 |
commit | 7a92038b78ce817067aeaa5ed0a8b83c3da97834 (patch) | |
tree | c37ce024ad81107e37507d1c3715d853e762516d | |
parent | 4be7da26b58105b8920aeab125a9eb051367ff8f (diff) | |
download | gcc-7a92038b78ce817067aeaa5ed0a8b83c3da97834.zip gcc-7a92038b78ce817067aeaa5ed0a8b83c3da97834.tar.gz gcc-7a92038b78ce817067aeaa5ed0a8b83c3da97834.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ipa-cp.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 36d14d0..a688247 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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> * doc/invoke.texi (MIPS Options): Update documentation of the diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c index c79f277..45c1093 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); } |