IT lexicon › Programming › Extended basic block

Extended basic block

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

A single-entry tree of basic blocks in which every block except the root has exactly one predecessor.

A basic block is too small to optimise in, and a whole function is often too expensive. The extended basic block sits in between: as long as control flow only splits and never rejoins, each block knows exactly what happened before it. Everything computed higher up the tree still holds, and facts never have to be merged from multiple paths.

That makes it a natural home for cheap optimisations. Superlocal value numbering, as described in Cooper and Torczon's textbook, walks the tree with a stack of tables and finds common subexpressions across block boundaries. Schedulers for wide machines use the same shape. These days the dominator tree and SSA form usually do the job function-wide, but the simple region survives wherever compile time is tight.

← Back to the lexicon