How prevalent is branch prediction on current CPUs?

后端 未结 5 1645
面向向阳花
面向向阳花 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:51

    Branch prediction is getting more important and emphasized while ARM is getting more complicated.

    For example new 64-bit ARM architecture called ARMv8 drops most use of conditional execution (mainly due to instruction encoding space restrictions with increased number of registers) and relies on branch prediction to keep performance at acceptable levels.

    Even for newer ARMv7-a devices you can check terrible cases like unsorted data question on SO, which branch prediction improvement is around 3x.

提交回复
热议问题