Tags

#Speculative-Execution

1 post

Low-Latency Systems Development #7 41 min read

Branch Prediction and Branch Optimization

The front end has to fetch instructions every cycle, but a branch isn’t resolved until a dozen-plus cycles later, so the CPU guesses. A right guess costs almost nothing; a wrong one throws away everything after it, about 15–20 …