predict.def: New file.
authorJan Hubicka <jh@suse.cz>
Sat, 9 Jun 2001 22:39:25 +0000 (00:39 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 9 Jun 2001 22:39:25 +0000 (22:39 +0000)
commit4db384c950ec85ca96e4bcaf7b00c36f2f6ccbd5
treec28f4818b4bed04584e0f35d196aab217d30a449
parent5bb8dd28b87e7894d3dd5e03eacb09b975bbf0ca
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
gcc/ChangeLog
gcc/Makefile.in
gcc/combine.c
gcc/ifcvt.c
gcc/jump.c
gcc/predict.c
gcc/predict.def [new file with mode: 0644]
gcc/predict.h [new file with mode: 0644]
gcc/rtl.h