RFA: estimate probabilities if profile information not available

Richard Henderson rth@redhat.com
Tue Jan 27 05:54:00 GMT 2004


On Mon, Jan 26, 2004 at 04:21:25PM +0000, Joern Rennecke wrote:
> ! /* Convert counts measured by profile driven feedback to frequencies.
> !    Return nonzero iff there was any nonzero execution count.  */
>   
> ! static int
>   counts_to_freqs (void)
>   {
> !   gcov_type count_max, true_count_max = 0;
>     basic_block bb;
>   
>     FOR_EACH_BB (bb)
> !     count_max = MAX (bb->count, true_count_max);

       ^^^
Surely a typo?

> !   if (! flag_branch_probabilities || ! counts_to_freqs ())

codingconventions.html sez "!x", not "! x".


r~



More information about the Gcc-patches mailing list