IT lexicon › Programming › Gated SSA (GSA)

Gated SSA (GSA)

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

A flavour of SSA whose merge points record not just that a value came from one of several paths, but under which condition.

An ordinary φ-function only knows that x3 is either x1 or x2, depending on which edge control arrived along. The condition that picked the edge is still somewhere in the control-flow graph, just not in the value itself. Gated SSA swaps φ for gating functions that take the predicate as an argument: γ at an if-merge, μ at a loop header, and η at the loop exit, naming the value that survives once the loop is done.

Robert Ballance, Arthur Maccabe and Karl Ottenstein described it in 1990 as part of their program dependence web, and Peng Tu and David Padua showed in 1995 how to build it efficiently. It found a following in symbolic analysis and parallelising compilers, where you want to compute a variable's value without first simulating the control flow. Mainstream production compilers never took it up — most passes get along fine with plain SSA and a glance at the branch.

← Back to the lexicon