-
- Downloads
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
Showing
- gcc/ChangeLog 23 additions, 0 deletionsgcc/ChangeLog
- gcc/Makefile.in 3 additions, 2 deletionsgcc/Makefile.in
- gcc/combine.c 1 addition, 0 deletionsgcc/combine.c
- gcc/ifcvt.c 1 addition, 5 deletionsgcc/ifcvt.c
- gcc/jump.c 19 additions, 7 deletionsgcc/jump.c
- gcc/predict.c 174 additions, 34 deletionsgcc/predict.c
- gcc/predict.def 47 additions, 0 deletionsgcc/predict.def
- gcc/predict.h 46 additions, 0 deletionsgcc/predict.h
- gcc/rtl.h 11 additions, 7 deletionsgcc/rtl.h
Loading
Please register or sign in to comment