params.def (tracer-min-branch-probability-feedback): Fix default.
* params.def (tracer-min-branch-probability-feedback): Fix default. * final.c (compute_alignments): Use profile to avoid code bloat. From-SVN: r60413
This commit is contained in:
parent
fba1caab66
commit
66b4e47860
3 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Sun Dec 22 18:23:44 CET 2002 Jan Hubicka <jh@suse.cz>
|
||||||
|
|
||||||
|
* params.def (tracer-min-branch-probability-feedback): Fix default.
|
||||||
|
* final.c (compute_alignments): Use profile to avoid code bloat.
|
||||||
|
|
||||||
2002-12-22 Kazu Hirata <kazu@cs.umass.edu>
|
2002-12-22 Kazu Hirata <kazu@cs.umass.edu>
|
||||||
|
|
||||||
* config/h8300/h8300.c (get_shift_alg): Make shift insn
|
* config/h8300/h8300.c (get_shift_alg): Make shift insn
|
||||||
|
|
|
@ -677,7 +677,8 @@ compute_alignments ()
|
||||||
int fallthru_frequency = 0, branch_frequency = 0, has_fallthru = 0;
|
int fallthru_frequency = 0, branch_frequency = 0, has_fallthru = 0;
|
||||||
edge e;
|
edge e;
|
||||||
|
|
||||||
if (GET_CODE (label) != CODE_LABEL)
|
if (GET_CODE (label) != CODE_LABEL
|
||||||
|
|| probably_never_executed_bb_p (bb))
|
||||||
continue;
|
continue;
|
||||||
max_log = LABEL_ALIGN (label);
|
max_log = LABEL_ALIGN (label);
|
||||||
max_skip = LABEL_ALIGN_MAX_SKIP;
|
max_skip = LABEL_ALIGN_MAX_SKIP;
|
||||||
|
@ -716,6 +717,7 @@ compute_alignments ()
|
||||||
/* In case block is frequent and reached mostly by non-fallthru edge,
|
/* In case block is frequent and reached mostly by non-fallthru edge,
|
||||||
align it. It is most likely a first block of loop. */
|
align it. It is most likely a first block of loop. */
|
||||||
if (has_fallthru
|
if (has_fallthru
|
||||||
|
&& maybe_hot_bb_p (bb)
|
||||||
&& branch_frequency + fallthru_frequency > BB_FREQ_MAX / 10
|
&& branch_frequency + fallthru_frequency > BB_FREQ_MAX / 10
|
||||||
&& branch_frequency > fallthru_frequency * 2)
|
&& branch_frequency > fallthru_frequency * 2)
|
||||||
{
|
{
|
||||||
|
|
|
@ -184,7 +184,7 @@ DEFPARAM(TRACER_MIN_BRANCH_PROBABILITY_FEEDBACK,
|
||||||
"tracer-min-branch-probability-feedback",
|
"tracer-min-branch-probability-feedback",
|
||||||
"Stop forward growth if the probability of best edge is less than \
|
"Stop forward growth if the probability of best edge is less than \
|
||||||
this threshold (in percents). Used when profile feedback is available",
|
this threshold (in percents). Used when profile feedback is available",
|
||||||
30)
|
80)
|
||||||
DEFPARAM(TRACER_MIN_BRANCH_PROBABILITY,
|
DEFPARAM(TRACER_MIN_BRANCH_PROBABILITY,
|
||||||
"tracer-min-branch-probability",
|
"tracer-min-branch-probability",
|
||||||
"Stop forward growth if the probability of best edge is less than \
|
"Stop forward growth if the probability of best edge is less than \
|
||||||
|
|
Loading…
Add table
Reference in a new issue