Class EliminateDeadBlocks
java.lang.Object
io.github.eutro.wasm2j.core.passes.opts.EliminateDeadBlocks
- All Implemented Interfaces:
InPlaceIRPass<Function>
,IRPass<Function,
Function>
An optimisation pass that removes any blocks unreachable from the root block.
-
Field Details
-
INSTANCE
An instance of this pass.
-
-
Constructor Details
-
EliminateDeadBlocks
public EliminateDeadBlocks()
-
-
Method Details
-
runInPlace
Description copied from interface:InPlaceIRPass
Run the pass.- Specified by:
runInPlace
in interfaceInPlaceIRPass<Function>
- Parameters:
function
- The IR to run this pass on.
-