News for hackers. Stuff that matters.
Re:Branch predictor: How many “if”s are too many? by Veedrac on Thursday May 06, 2021 @04:44PM (#27068833)
Branch prediction works predictably well when the branch is heavily biased towards one outcome, typically follows a repeating pattern of a short length (eg. taken once every three iterations), or is strongly correlated with another preceding (not necessarily local) branch. Conversely, branch prediction works badly when they are data dependent on irregular data.

There are no comments on this comment yet.