1 USING: compiler.cfg compiler.cfg.instructions
2 compiler.cfg.ssa.construction.private help.markup help.syntax ;
3 IN: compiler.cfg.ssa.construction
6 { $values { "vreg" "vreg" } { "bb" basic-block } { "##phi" ##phi } }
7 { $description "Creates a new " { $link ##phi } " instruction given a vreg and a basic block." } ;
10 { $var-description "Maps vregs to " { $link ##phi } " instructions." } ;
13 { $var-description "Worklist of used vregs, to calculate used phis." } ;
16 { $var-description "Maps vregs to sets of basic blocks." } ;
19 { $var-description "Set of vregs defined in more than one basic block." } ;
22 { $var-description "Maps basic blocks to sequences of " { $link ##phi } " instructions." } ;
25 { $var-description "Maps vregs to renaming stacks." } ;
28 { $var-description "Maps vregs to renaming stacks." } ;
30 ARTICLE: "compiler.cfg.ssa.construction" "SSA construction"
31 "Iterated dominance frontiers are computed using the DJ Graph method in " { $vocab-link "compiler.cfg.ssa.construction.tdmsc" } "."
33 "The renaming algorithm is based on \"Practical Improvements to the Construction and Destruction of Static Single Assignment Form\"."
35 "We construct pruned SSA without computing live sets, by building a dependency graph for phi instructions, marking the transitive closure of a vertex as live if it is referenced by some non-phi instruction. Thanks to Cameron Zwarich for the trick."
37 "http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.49.9683" ;
39 ABOUT: "compiler.cfg.ssa.construction"