This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-profiling] Fix return predictors


On Sun, 2004-08-08 at 15:34, Jan Hubicka wrote:
> Hi,
> this patch should fix the return predictors after Richard's change to
> commonize RETURN_STMT.
> 
> Bootstrapped/regtested i686-pc-gnu-linux
> 
> Honza
> 
> 2004-08-08  Jan Hubicka  <jh@suse.cz>
> 	* predict.c (apply_return_prediction): New function.
> 	(tree_bb_level_predictions): Use apply_return_prediction; kill old
> 	return prediction code.
> 	(tree_estimate_probability): Fix early return prediction.
It ought to be interesting to see if this helps the lousy predictions
we're getting from early return.  Here's some data from compiling
some testcodes (from GCC itself):

early return       13211  10.7%   3.22% /  99.67%   3997952937   4.9%

Jeff



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]