Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yeah, these days it's likely for only the frontend to stall during misprediction recovery. Already decoded µops from before the branch still make their way through the backend as normal. If you have enough of those (long dependency chains or the branch was reordered early enough), it's possible that the misprediction has effectively no penalty.

As a corollary, this means that when possible you want the dependency chain for branches to be as independent and short as possible, so the CPU can reorder and resolve branches as early as possible.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: