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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.eutro.wasm2j.core.passes.InPlaceIRPass
isInPlace, run
-
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.
-