Skip to content
hpcnotes
Loading…
HPC·Instruction-Level Parallelism
2026.09.11· 1 min

The Cost of Branching

A branch is cheap until it is not. Profile the mispredicts, then decide on predication.
Pipeline Hazards........................................................................................................................................................................................................Previous
Branchless Programming........................................................................................................................................................................................................Next
#hpc
Pipeline Hazards........................................................................................................................................................................................................2026.09.11
Branchless Programming........................................................................................................................................................................................................2026.09.11
Instruction Tables........................................................................................................................................................................................................2026.09.11
Instruction Scheduling........................................................................................................................................................................................................2026.09.11
Throughput Computing........................................................................................................................................................................................................2026.09.11
Suggest an editMarkdownHistory