Commit 6f48c21a by Pete Steinmetz Committed by David Edelsohn

params.def (PARAM_MIN_SPEC_PROB): New.

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
parent fe58e076
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> 2005-08-24 Fariborz Jahanian <fjahanian@apple.com>
* config/darwin.h: define __PIC__ * config/darwin.h: define __PIC__
......
...@@ -6005,6 +6005,10 @@ interblock scheduling. The default value is 10. ...@@ -6005,6 +6005,10 @@ interblock scheduling. The default value is 10.
The maximum number of insns in a region to be considered for The maximum number of insns in a region to be considered for
interblock scheduling. The default value is 100. 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 @item max-last-value-rtl
The maximum size measured as number of RTLs that can be recorded in an expression The maximum size measured as number of RTLs that can be recorded in an expression
......
...@@ -451,6 +451,11 @@ DEFPARAM(PARAM_MAX_SCHED_REGION_INSNS, ...@@ -451,6 +451,11 @@ DEFPARAM(PARAM_MAX_SCHED_REGION_INSNS,
"The maximum number of insns in a region to be considered for interblock scheduling", "The maximum number of insns in a region to be considered for interblock scheduling",
100, 0, 0) 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, DEFPARAM(PARAM_MAX_LAST_VALUE_RTL,
"max-last-value-rtl", "max-last-value-rtl",
"The maximum number of RTL nodes that can be recorded as combiner's last value", "The maximum number of RTL nodes that can be recorded as combiner's last value",
......
...@@ -251,10 +251,6 @@ static void compute_dom_prob_ps (int); ...@@ -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 IS_SPECULATIVE_INSN(INSN) (IS_SPECULATIVE (BLOCK_TO_BB (BLOCK_NUM (INSN))))
#define INSN_BB(INSN) (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. */ /* Speculative scheduling functions. */
static int check_live_1 (int, rtx); static int check_live_1 (int, rtx);
static void update_live_1 (int, rtx); static void update_live_1 (int, rtx);
...@@ -1013,7 +1009,7 @@ compute_trg_info (int trg) ...@@ -1013,7 +1009,7 @@ compute_trg_info (int trg)
if (sp->is_valid) if (sp->is_valid)
{ {
sp->src_prob = GET_SRC_PROB (i, trg); 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) if (sp->is_valid)
......
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