]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
params.def (PARAM_MIN_SPEC_PROB): New.
authorPete Steinmetz <steinmtz@us.ibm.com>
Wed, 24 Aug 2005 20:28:07 +0000 (20:28 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Wed, 24 Aug 2005 20:28:07 +0000 (16:28 -0400)
2005-08-24  Pete Steinmetz  <steinmtz@us.ibm.com>

        * params.def (PARAM_MIN_SPEC_PROB): New.
        * sched-rgn.c (MIN_PROBABILITY): Delete.
        (compute_trg_info): Convert to PARAM_VALUE.
        * doc/invoke.texi (param): Document min-spec-prob.

From-SVN: r103450

gcc/ChangeLog
gcc/doc/invoke.texi
gcc/params.def
gcc/sched-rgn.c

index 26ea0debe955b7eb7bf77c4886e1266b2320c07f..1629304636f07940c42e955772b2d70391e67ec4 100644 (file)
@@ -1,3 +1,10 @@
+2005-08-24  Pete Steinmetz  <steinmtz@us.ibm.com>
+
+       * params.def (PARAM_MIN_SPEC_PROB): New.
+       * sched-rgn.c (MIN_PROBABILITY): Delete.
+       (compute_trg_info): Convert to PARAM_VALUE.
+       * doc/invoke.texi (param): Document min-spec-prob.
+
 2005-08-24  Fariborz Jahanian <fjahanian@apple.com>
 
        * config/darwin.h: define __PIC__
index 444c3d9823fbbe7f47b27c9bb3beccb2546deffa..d31e77b467a3417ad639f5dc02abc8af44ef5569 100644 (file)
@@ -6005,6 +6005,10 @@ interblock scheduling.  The default value is 10.
 The maximum number of insns in a region to be considered for
 interblock scheduling.  The default value is 100.
 
+@item min-sched-prob
+The minimum probability of reaching a source block for interblock
+speculative scheduling.  The default value is 40.
+
 @item max-last-value-rtl
 
 The maximum size measured as number of RTLs that can be recorded in an expression
index 4fc74b5e6afeb237c25a82e82c8e7ea92b99139a..a777efa2e1da69c9409105c00ce4f3de9fbd8254 100644 (file)
@@ -451,6 +451,11 @@ DEFPARAM(PARAM_MAX_SCHED_REGION_INSNS,
         "The maximum number of insns in a region to be considered for interblock scheduling",
         100, 0, 0)
 
+DEFPARAM(PARAM_MIN_SPEC_PROB,
+         "min-spec-prob",
+         "The minimum probability of reaching a source block for interblock speculative scheduling",
+         40, 0, 0)
+
 DEFPARAM(PARAM_MAX_LAST_VALUE_RTL,
         "max-last-value-rtl",
         "The maximum number of RTL nodes that can be recorded as combiner's last value",
index ef182821412e111013d677210ce305482d95d6db..69bd3598576c094ae200069aee6eac21bedbd7ab 100644 (file)
@@ -251,10 +251,6 @@ static void compute_dom_prob_ps (int);
 #define IS_SPECULATIVE_INSN(INSN) (IS_SPECULATIVE (BLOCK_TO_BB (BLOCK_NUM (INSN))))
 #define INSN_BB(INSN) (BLOCK_TO_BB (BLOCK_NUM (INSN)))
 
-/* Parameters affecting the decision of rank_for_schedule().
-   ??? Nope.  But MIN_PROBABILITY is used in compute_trg_info.  */
-#define MIN_PROBABILITY 40
-
 /* Speculative scheduling functions.  */
 static int check_live_1 (int, rtx);
 static void update_live_1 (int, rtx);
@@ -1013,7 +1009,7 @@ compute_trg_info (int trg)
       if (sp->is_valid)
        {
          sp->src_prob = GET_SRC_PROB (i, trg);
-         sp->is_valid = (sp->src_prob >= MIN_PROBABILITY);
+         sp->is_valid = (sp->src_prob >= PARAM_VALUE (PARAM_MIN_SPEC_PROB));
        }
 
       if (sp->is_valid)