ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold instead of hard-wired...
authorMartin Jambor <mjambor@suse.cz>
Thu, 21 Feb 2013 16:05:27 +0000 (17:05 +0100)
committerMartin Jambor <jamborm@gcc.gnu.org>
Thu, 21 Feb 2013 16:05:27 +0000 (17:05 +0100)
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

gcc/ChangeLog
gcc/ipa-cp.c

index 36d14d073007118acab024ba69ba3073bc77e196..a688247c30c6df3d152f0b638c9138404a69a324 100644 (file)
@@ -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
index c79f277d61b33dddf6b0b6fb66019e4f67982a18..45c109392a1cc453e3bc23d777c318cab8fbe189 100644 (file)
@@ -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);
     }