IT lexicon › Programming › FastISel

FastISel

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

LLVM's quick instruction selector, which translates IR straight into machine instructions without building a graph, meant for unoptimized builds where compile time is everything.

LLVM's regular route goes through SelectionDAG: each basic block becomes a graph that gets combined, legalised and pattern-matched. The code is good, but it eats a sizeable share of total compile time. FastISel arrived in 2008 for -O0 builds, where nobody cares whether the output is optimal and everybody notices when the build is sluggish. It walks the instructions one at a time and emits a finished machine instruction for the common cases.

When it hits something it can't handle, it hands the rest of the block to SelectionDAG, so a target only has to implement the easy bits. GlobalISel was built to replace both with a single path and has taken over -O0 on AArch64; on x86, FastISel soldiers on.

← Back to the lexicon