removeDeadCode

fun removeDeadCode(dataCouplingMode: DataCouplingMode, generatePhis: Boolean = true)

Remove all unreachable blocks and all instructions that don't either have a side-effect or produce a value ultimately used by an instruction that has a side-effect.

Parameters

dataCouplingMode

How to trace data dependencies.