egcs/gcc predict.c rtl.h jump.c Makefile.in if ...

hubicka@gcc.gnu.org hubicka@gcc.gnu.org
Sat Jun 9 15:39:00 GMT 2001


CVSROOT:	/cvs/gcc
Module name:	egcs
Changes by:	hubicka@gcc.gnu.org	2001-06-09 15:39:26

Modified files:
	gcc            : predict.c rtl.h jump.c Makefile.in ifcvt.c 
	                 combine.c ChangeLog 
Added files:
	gcc            : predict.def predict.h 

Log message:
	* 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.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/egcs/gcc/predict.def.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/egcs/gcc/predict.h.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/egcs/gcc/predict.c.diff?cvsroot=gcc&r1=1.17&r2=1.18
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/egcs/gcc/rtl.h.diff?cvsroot=gcc&r1=1.263&r2=1.264
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/egcs/gcc/jump.c.diff?cvsroot=gcc&r1=1.176&r2=1.177
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/egcs/gcc/Makefile.in.diff?cvsroot=gcc&r1=1.672&r2=1.673
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/egcs/gcc/ifcvt.c.diff?cvsroot=gcc&r1=1.48&r2=1.49
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/egcs/gcc/combine.c.diff?cvsroot=gcc&r1=1.208&r2=1.209
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/egcs/gcc/ChangeLog.diff?cvsroot=gcc&r1=1.10302&r2=1.10303



More information about the Gcc-cvs mailing list