public class DeadCodeEliminationPhase extends Phase
Modifier and Type | Class and Description |
---|---|
static class |
DeadCodeEliminationPhase.Optionality |
static class |
DeadCodeEliminationPhase.Options |
Modifier and Type | Field and Description |
---|---|
private static DebugMetric |
metricNodesRemoved |
private boolean |
optional |
BEFORE_PHASE_DUMP_LEVEL, PHASE_DUMP_LEVEL
Constructor and Description |
---|
DeadCodeEliminationPhase()
Creates a dead code elimination phase that will be run irrespective of
DeadCodeEliminationPhase.Options.ReduceDCE . |
DeadCodeEliminationPhase(DeadCodeEliminationPhase.Optionality optionality)
Creates a dead code elimination phase that will be run only if it is
non-optional or
DeadCodeEliminationPhase.Options.ReduceDCE is false. |
Modifier and Type | Method and Description |
---|---|
private static void |
deleteNodes(NodeFlood flood,
StructuredGraph graph) |
private static void |
iterateSuccessorsAndInputs(NodeFlood flood) |
void |
run(StructuredGraph graph) |
apply, apply, createName, getName
private static final DebugMetric metricNodesRemoved
private final boolean optional
public DeadCodeEliminationPhase()
DeadCodeEliminationPhase.Options.ReduceDCE
.public DeadCodeEliminationPhase(DeadCodeEliminationPhase.Optionality optionality)
DeadCodeEliminationPhase.Options.ReduceDCE
is false.public void run(StructuredGraph graph)
private static void iterateSuccessorsAndInputs(NodeFlood flood)
private static void deleteNodes(NodeFlood flood, StructuredGraph graph)