logoalt Hacker News

gpderettatoday at 3:04 PM1 replyview on HN

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).


Replies

jeffbeetoday at 3:12 PM

They can't. The data that would be needed isn't available at the time the prediction is made.

show 1 reply