Re:Branch predictor: How many “if”s are too many?
by TonyTrapp on Thursday May 06, 2021 @12:04PM
(#27065288)
And to make it more complicated, both "regular" ifs and ternaries may not generate a branch at all, e.g. by using the CMOV (conditional move) instruction on x86. This avoids a branch but can obviously not eliminate the data dependency between the condition and a later consumer of the result.
[ Parent
| on HN ]
There are no comments on this comment yet.