How prevalent is branch prediction on current CPUs?

后端 未结 5 1641
面向向阳花
面向向阳花 2021-02-03 23:14

Due to the huge impact on performance, I never wonder if my current day desktop CPU has branch prediction. Of course it does. But how about the various ARM offerings? Does iPhon

5条回答
  •  清歌不尽
    2021-02-03 23:37

    Modern high end superscalar CPUs with long pipelines (which means almost all CPUs commonly found in desktops and servers) have quite sophisticated branch prediction these days.

    Most ARM CPUs do not have branch prediction, which saves silicon and power consumption, but ARM CPUs generally have relatively short pipelines. Also the support for conditional execution of most instructions in the ARM ISA helps to reduce the number of branches required (and hence mitigates the cost of branch misprediction stalls).

提交回复
热议问题