3 ms·
There isn’t one. Branch prediction allows speculative execution, but cmov just blocks. Reordering may allow executing independent instructions which follow the
by masklinn 4y ago
There isn’t one. Branch prediction allows speculative execution, but cmov just blocks.
Reordering may allow executing independent instructions which follow the cmov, but anything depending on the cmov will have to wait.
It’s one of the reasons compilers avoid cmov relatively aggressively, they can cause pipeline stalls which don’t affect branches.