←back to thread

170 points judicious | 1 comments | | HN request time: 0s | source
Show context
mwkaufma ◴[] No.45408552[source]
Is cmov branchless, or just branching by another name?
replies(3): >>45409160 #>>45409795 #>>45410660 #
1. teo_zero ◴[] No.45410660[source]
CMOV is branchless. During all steps of its execution, the CPU doesn't have to invalidate any stage of its pipeline (well, excluding errors like accessing forbidden memory addresses, etc.).