News for hackers. Stuff that matters.
Re:Decimating Array.Sort with AVX2 by devit on Sunday May 24, 2020 @07:06AM (#23290726)
If the conditional is almost always true or almost always false and the CPU has a branch predictor, then a branch is likely faster; otherwise, the CMOV will be faster.

Obviously a CPU could use a predictor for CMOVs as well, although I think the commonly used CPUs don't (but not too sure).

There are no comments on this comment yet.