5 ms·
Typical branch predictors can both learns patterns (even very long patterns) and use branch history (the probability of a branch being taken depends on the path
by gpderetta 7mo ago
Typical branch predictors can both learns patterns (even very long patterns) and use branch history (the probability of a branch being taken depends on the path taken to reach that branch). They don't normally look at data other than branch addresses (and targets for indirect branches).
- jeffbee 7mo agoThey can't. The data that would be needed isn't available at the time the prediction is made.
- 1718627440 7mo agoYeah, otherwise you wouldn't need to predict anything.