Re: [PATCH] increase builtin_expert probability in loop exit test

2013-10-11 Thread Rong Xu
Attached is the patchset 2. It takes the max to two hitrates then does the incremental. On Fri, Oct 11, 2013 at 2:01 PM, Rong Xu wrote: > Hi, > > An earlier patch (r203167) changed the default probability for > builtin_expect to 90%. > It does not work properly for the following case: >while

[PATCH] increase builtin_expert probability in loop exit test

2013-10-11 Thread Rong Xu
Hi, An earlier patch (r203167) changed the default probability for builtin_expect to 90%. It does not work properly for the following case: while (__builin_expect (expr, 1)) { } W/o builtin_expect, the exit probability is 9% while w/ builtin_expect, the exit probability is 10%. It seems to