English 中文(简体)
分支预测:现代CPU中使用的BTB驱逐方案是什么(例如Intel skylake)?
原标题:Branch Prediction: What is the BTB eviction scheme used in modern CPUs (Intel skylake for example)?

对于分支预测,BHT(分支历史表)由分支虚拟地址索引。当两个或多个分支哈希到BHT(分支历史表)中的同一条目时,会出现混叠问题,这种冲突会导致预测精度下降。

BTB(分支目标缓冲区)是分支历史信息的一部分。那么,现代CPU中使用的BTB驱逐方案是什么(与缓存驱逐相比)?被占用的分支是否总是立即占用BTB条目,并在集合中没有空闲条目的情况下驱逐该条目?

问题回答

暂无回答




相关问题
Are If Thens faster than multiplication and assignment?

I have a quick question, suppose I have the following code and it s repeated in a simliar way 10 times for example. if blah then number = number + 2^n end if Would it be faster to evaluate: ...

Portable branch prediction hints

Is there any portable way of doing branch prediction hints? Consider the following example: if (unlikely_condition) { /* ..A.. */ } else { /* ..B.. */ } Is this any different than ...

branch prediction

Consider the following sequence of actual outcomes for a single static branch. T means the branch is taken. N means the branch is not taken. For this question, assume that this is the only branch in ...

热门标签