lkml.org 
[lkml]   [2008]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 0/2] Immediate Values - jump patching update
Mathieu Desnoyers wrote:
>
> Following your own suggestion, why don't we fix gcc and make it
> interleave unlikely blocks less heavily with hot blocks ?
>

Doing this with compiler support is definitely The Right Thing, so I
think this is the best way.

>> Furthermore, modern CPUs often speculatively fetch *both*
>> branches of a conditional.
>>
>> This is actually the biggest motivation for patching static branches.
>
> Agreed. I'd like to find some info about which microarchitectures you
> have in mind. Intel Core 2 ?

Not sure about Core 2, although Core 2 definitely can track down the
wrong branch on a mispredict.

> Let's fix gcc ! ;)

Sounds great :)

-hpa



\
 
 \ /
  Last update: 2008-05-04 23:11    [W:0.143 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site