Package com.tonic.analysis.ssa.lower
Class PhiEliminator
- java.lang.Object
-
- com.tonic.analysis.ssa.lower.PhiEliminator
-
public class PhiEliminator extends Object
Eliminates phi functions by inserting copies in predecessor blocks, splitting critical edges where needed.
-
-
Constructor Summary
Constructors Constructor Description PhiEliminator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voideliminate(IRMethod method)Splits critical edges, keeps the phis that can stay stack-resident, materializes the rest as predecessor copies and then removes every phi from the method.
-
-
-
Method Detail
-
eliminate
public void eliminate(IRMethod method)
Splits critical edges, keeps the phis that can stay stack-resident, materializes the rest as predecessor copies and then removes every phi from the method.- Parameters:
method- method to rewrite in place
-
-