Package com.tonic.analysis.ssa.lift
Class PhiInserter
- java.lang.Object
-
- com.tonic.analysis.ssa.lift.PhiInserter
-
public class PhiInserter extends Object
Phi insertion at dominance frontiers via the Cytron algorithm, yielding minimal SSA form.
-
-
Constructor Summary
Constructors Constructor Description PhiInserter(DominatorTree dominatorTree)Creates an inserter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinsertPhis(IRMethod method)Inserts phi functions for every local defined in the method.
-
-
-
Constructor Detail
-
PhiInserter
public PhiInserter(DominatorTree dominatorTree)
Creates an inserter.- Parameters:
dominatorTree- the computed dominator tree of the method
-
-
Method Detail
-
insertPhis
public void insertPhis(IRMethod method)
Inserts phi functions for every local defined in the method.- Parameters:
method- the method to transform
-
-