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, waitMethods 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:InPlaceIRPassRun the pass.- Specified by:
runInPlacein interfaceInPlaceIRPass<Function>- Parameters:
function- The IR to run this pass on.
-