diff options
author | Jan Hubicka <jh@suse.cz> | 2001-06-10 00:39:25 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2001-06-09 22:39:25 +0000 |
commit | 4db384c950ec85ca96e4bcaf7b00c36f2f6ccbd5 (patch) | |
tree | c28f4818b4bed04584e0f35d196aab217d30a449 /gcc/combine.c | |
parent | 5bb8dd28b87e7894d3dd5e03eacb09b975bbf0ca (diff) | |
download | gcc-4db384c950ec85ca96e4bcaf7b00c36f2f6ccbd5.zip gcc-4db384c950ec85ca96e4bcaf7b00c36f2f6ccbd5.tar.gz gcc-4db384c950ec85ca96e4bcaf7b00c36f2f6ccbd5.tar.bz2 |
predict.def: New file.
* predict.def: New file.
* predict.h: New file.
* predict.c: Include predict.h.
(predictor_info): New structure and array.
(predict_edge, predict_insn): Rewrite; make global.
(predict_edge_def, predict_insn_def): New global functions.
(dump_prediction, combine_predictions_for_insns): New
static functions.
(estimate_probability): Change calls to predict_edge
to predict_edge_def and calls to predict_insn to predict_insn_def;
combine probabilities.
(expected_value_to_br_prob): Behave as predictor.
* rtl.h (REG_BR_PRED): Update coment.
(invert_br_probabilities): New.
* jump.c: Include predict.h
(duplicate_loop_exit_test): Drop branch prediction notes.
(invert_jump): Use invert_br_probabilities.
* Makefile.in: Add dependancy on predict.h for jump and predict pass.
* ifcvt.c (dead_or_predicable): Use invert_br_probabilities.
* combine.c (distribute_notes): Handle BR_PRED.
From-SVN: r43115
Diffstat (limited to 'gcc/combine.c')
-rw-r--r-- | gcc/combine.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/combine.c b/gcc/combine.c index d3c70c3..a9ad710 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -11952,6 +11952,7 @@ distribute_notes (notes, from_insn, i3, i2, elim_i2, elim_i1) switch (REG_NOTE_KIND (note)) { case REG_BR_PROB: + case REG_BR_PRED: case REG_EXEC_COUNT: /* Doesn't matter much where we put this, as long as it's somewhere. It is preferable to keep these notes on branches, which is most |