Hacker News new | ask | show | jobs
by Maxatar 23 days ago
Branch prediction is not magic and code that relies on it for branches that could otherwise be deduced statically can quickly result in destructive aliasing which results in branch mispredictions even on highly predictable branches.