News for hackers. Stuff that matters.
Re:Six times faster than C by sweetjuly on Friday July 07, 2023 @04:14AM (#36628754)
> Speculative execution is all about control flow

It's murkier than that. Speculation also deals with the order in which instructions can be executed. Take for example memory ordering (discussed in a mini essay elsewhere here): we typically speculate that all loads are unrelated to any other older in-flight stores with unresolved addresses so that we can optimistically launch them. This is not a control flow issue but it is something we both speculate and predict (memory dependence predictors!) despite the next PC being essentially deterministic.

There are no comments on this comment yet.