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]

Re: predict basic block frequencies from branch predictions


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~


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