nitc :: APropdef :: compute_ssa
ssa
A new instance of SSA class initialized with self
# Compute the three steps of SSA-algorithm
# `ssa` A new instance of SSA class initialized with `self`
fun compute_ssa(ssa: SSA)
do
if is_generated then return
# The first step is to generate the basic blocks
generate_basic_blocks(ssa)
# The propdef has no body (abstract)
if not is_generated then return
# Once basic blocks were generated, compute SSA algorithm
compute_phi(ssa)
rename_variables(ssa)
ssa_destruction(ssa)
end
src/ssa.nit:220,2--236,4