2 ms·
Another way to see this is that the 'branchy' version can have multiple loads pending at the same time. This is a big win for non L1-cached loads. Cmov forces
by gpderetta 11y ago
Another way to see this is that the 'branchy' version can have multiple loads pending at the same time. This is a big win for non L1-cached loads.
Cmov forces each load to depend on the previous one, so you will have only one load pending at any time.
With a 50% misprediction rate, the Nth load has only 0.5N probability of actually committing, but it is still better than just having a single load in flight.