10
Branch Prediction — Everything you need to know.

Branch Prediction — Everything you need to know.

5 years ago
Anonymous $9jpehmcKty

https://medium.com/@harshalparekh20696/branch-prediction-everything-you-need-to-know-da13ce05787e

In computer science, predication is an architectural feature that provides an alternative to conditional transfer of control, implemented by machine instructions such as conditional branch, conditional call, conditional return, and branch tables. Predication works by executing instructions from both paths of the branch and only permitting those instructions from the taken path to modify architectural state. [1]

To better understand the concept, let’s take an example: “Processing a sorted array is faster than processing an unsorted array”