IT lexicon › Programming › Scheduling model

Scheduling model

Programming På svenska → Updated: 2026-11-07

The compiler's table for a particular processor core: each instruction's latency, which execution ports it needs, and how many instructions can start per cycle.

An instruction scheduler is only as good as its numbers. In LLVM each core is described by a SchedMachineModel in TableGen: issue width, reorder buffer size, latencies and which resources an instruction occupies. GCC has described pipelines as automata via define_insn_reservation since the early 2000s. The model is what changes when you pass -mtune; the instructions stay the same, the ordering and cost estimates differ.

The figures come from vendor manuals, measurement projects such as uops.info, and occasionally pure guesswork. Errors rarely show, since out-of-order cores reorder anyway. The llvm-mca tool from 2018 runs the same model in reverse to predict how a snippet will perform — exactly as accurately as the model, that is.

← Back to the lexicon