This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-profiling] Fix return predictors
- From: Jeffrey A Law <law at redhat dot com>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 09 Aug 2004 08:06:58 -0600
- Subject: Re: [tree-profiling] Fix return predictors
- Organization: Red Hat, Inc
- References: <20040808213451.GH6789@kam.mff.cuni.cz>
- Reply-to: law at redhat dot com
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