Package com.tonic.analysis.ssa.transform
Class DuplicateBlockMerging
- java.lang.Object
-
- com.tonic.analysis.ssa.transform.DuplicateBlockMerging
-
- All Implemented Interfaces:
IRTransform
public class DuplicateBlockMerging extends Object implements IRTransform
Merges duplicate blocks created by node splitting while preserving reducibility.
-
-
Constructor Summary
Constructors Constructor Description DuplicateBlockMerging()Creates the pass in conservative mode.DuplicateBlockMerging(boolean aggressive)Creates the pass.
-
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 transformation on the specified method.
-
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:IRTransformGets the name of this transformation.- Specified by:
getNamein interfaceIRTransform- Returns:
- the transformation name
-
run
public boolean run(IRMethod method)
Description copied from interface:IRTransformRuns the transformation on the specified method.- Specified by:
runin interfaceIRTransform- Parameters:
method- the method to transform- Returns:
- true if the method was modified
-
-