Package com.tonic.analysis.ssa.transform
Class CopyPropagation
- java.lang.Object
-
- com.tonic.analysis.ssa.transform.CopyPropagation
-
- All Implemented Interfaces:
IRTransform
public class CopyPropagation extends Object implements IRTransform
Propagates copies to eliminate redundant copy instructions.
-
-
Constructor Summary
Constructors Constructor Description CopyPropagation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Gets the name of this transformation.booleanrun(IRMethod method)Runs the copy propagation transformation on the specified method.
-
-
-
Method Detail
-
getName
public String getName()
Gets the name of this transformation.- Specified by:
getNamein interfaceIRTransform- Returns:
- the transformation name
-
run
public boolean run(IRMethod method)
Runs the copy propagation transformation on the specified method.- Specified by:
runin interfaceIRTransform- Parameters:
method- the method to transform- Returns:
- true if the method was modified
-
-