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: ia64: Don't use static branch prediction


bernds@redhat.co.uk (Bernd Schmidt) writes:
>  	    /* Guess top and bottom 10% statically predicted.  */

does this comment deserve updating?  (I'd guess so.)


> -	    else if (pred_val < REG_BR_PROB_BASE * 9 / 10)
> +	    else if (pred_val < REG_BR_PROB_BASE / 100 * 98)

in practice, the ordering here is OK because of the (large-ish) value
of REG_BR_PROB_BASE...  but why switch it around?



cgd

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