public static class FixReadsPhase.RawConditionalEliminationVisitor extends Object implements ControlFlowGraph.RecursiveVisitor<Integer>
| Modifier and Type | Field and Description |
|---|---|
protected NodeMap<FixReadsPhase.StampElement> |
stampMap |
protected NodeStack |
undoOperations |
| Constructor and Description |
|---|
RawConditionalEliminationVisitor(StructuredGraph graph,
StructuredGraph.ScheduleResult schedule,
MetaAccessProvider metaAccess,
boolean replaceInputsWithConstants) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkReplaceWithConstant(Stamp newStamp,
ValueNode node) |
Integer |
enter(Block b) |
void |
exit(Block b,
Integer state) |
protected Stamp |
getBestStamp(ValueNode value) |
protected void |
processAbstractBegin(AbstractBeginNode beginNode) |
protected void |
processBinary(BinaryNode node) |
protected void |
processConditional(ConditionalNode node) |
protected void |
processEnd(EndNode node) |
protected void |
processIf(IfNode node) |
protected void |
processIntegerSwitch(IntegerSwitchNode node) |
protected void |
processNode(Node node) |
protected void |
processUnary(UnaryNode node) |
protected void |
registerCombinedStamps(MergeNode node) |
protected void |
registerCondition(LogicNode condition,
boolean negated) |
protected void |
registerNewCondition(LogicNode condition,
boolean negated) |
protected void |
registerNewStamp(ValueNode value,
Stamp newStamp) |
protected boolean |
registerNewValueStamp(ValueNode value,
Stamp newStamp) |
protected int |
replaceConstantInputs(Node node) |
protected void |
replaceInput(Position p,
Node oldInput,
Node newConstantInput) |
protected TriState |
tryProveCondition(LogicNode condition) |
protected final NodeMap<FixReadsPhase.StampElement> stampMap
protected final NodeStack undoOperations
public RawConditionalEliminationVisitor(StructuredGraph graph, StructuredGraph.ScheduleResult schedule, MetaAccessProvider metaAccess, boolean replaceInputsWithConstants)
protected int replaceConstantInputs(Node node)
protected void processNode(Node node)
protected void registerCombinedStamps(MergeNode node)
protected void processEnd(EndNode node)
protected void processUnary(UnaryNode node)
protected void processBinary(BinaryNode node)
protected void processIntegerSwitch(IntegerSwitchNode node)
protected void processIf(IfNode node)
protected void processConditional(ConditionalNode node)
protected TriState tryProveCondition(LogicNode condition)
protected void processAbstractBegin(AbstractBeginNode beginNode)
protected void registerNewCondition(LogicNode condition, boolean negated)
protected void registerCondition(LogicNode condition, boolean negated)
public Integer enter(Block b)
enter in interface ControlFlowGraph.RecursiveVisitor<Integer>public void exit(Block b, Integer state)
exit in interface ControlFlowGraph.RecursiveVisitor<Integer>