IT lexicon › Programming › SSA form

SSA form

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

An intermediate representation in which every variable is assigned exactly once, which makes dataflow trivial for the compiler to follow.

Static single assignment came out of IBM in the 1980s — Ron Cytron, Jeanne Ferrante, Mark Wegman and Kenneth Zadeck among others — and their 1991 paper showed how to construct it efficiently. Each new assignment gets a fresh name, so x becomes x1, x2, and every use points at exactly one definition.

Where two control-flow paths merge, a φ-function is inserted: x3 = φ(x1, x2) picks a value depending on which way you arrived. No CPU can execute a φ, so they are dissolved again before code generation. The form simplifies constant propagation, dead-code elimination and register allocation so much that practically every modern compiler uses it; GCC switched in version 4.0 in 2005, and LLVM IR has been SSA from day one.

← Back to the lexicon