This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: predict basic block frequencies from branch predictions
- To: Jan Hubicka <jh at suse dot cz>
- Subject: Re: predict basic block frequencies from branch predictions
- From: Richard Henderson <rth at redhat dot com>
- Date: Wed, 20 Jun 2001 09:20:47 -0700
- Cc: gcc-patches at gcc dot gnu dot org, patches at x86-64 dot org
- References: <20010619221610.F20436@atrey.karlin.mff.cuni.cz>
On Tue, Jun 19, 2001 at 10:16:10PM +0200, Jan Hubicka wrote:
> I am using floats for that and I am not sure if this is acceptable.
Should be ok. The numbers have to get _really_ big before
you start moving out of the range of integral for a double.
> * predict.c (estimate_loops_at_level, propagate_freq
> estimate_bb_frequencies, count_to_freqs): New functions.
> (estimate_probability): Call estimate_bb_frequencies.
> * basic-block.h (basic_block_def): Add field "freq".
> (BB_FREQ_MAX): New constant.
Ok.
> + /* Helper function for estimate_basic_block frequencies.
estimate_bb_frequencies.
> + Propagate the frequencis for loops headed by HEAD. */
s/cis/cies/
> + /* Counvert counts mesured by profile driven feedback to frequencies. */
Convert.
r~