This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Branch predictor reorganization
- To: Jan Hubicka <jh at suse dot cz>
- Subject: Re: Branch predictor reorganization
- From: Richard Henderson <rth at redhat dot com>
- Date: Sat, 9 Jun 2001 14:52:12 -0700
- Cc: patches at x86-64 dot org, gcc-patches at gcc dot gnu dot org
- References: <20010609231555.A1546@atrey.karlin.mff.cuni.cz>
On Sat, Jun 09, 2001 at 11:15:55PM +0200, Jan Hubicka wrote:
> * 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.
Ok.
Consistant typos: s/heruistic/heuristic/g
r~