|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--at.dms.backend.TreeWalker | +--at.dms.backend.DeadcodeElimination
This class removes deadcode generated by optimizations or code transformation.
Constructor Summary | |
DeadcodeElimination(BasicBlock[] bblocks,
BasicBlock[] eblocks)
Creates a new instruction handle. |
Method Summary | |
protected void |
kill()
Called when a branch is reached. |
protected void |
processNode(QNode node)
Processes the node. |
void |
run()
Runs the deadcode algorithm. |
Methods inherited from class at.dms.backend.TreeWalker |
getBasicBlock, removeNode, traverse |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public DeadcodeElimination(BasicBlock[] bblocks, BasicBlock[] eblocks)
instruction
- The instructionprev
- The handle of the next instruction in textual order.Method Detail |
public void run()
protected void processNode(QNode node)
TreeWalker
processNode
in class TreeWalker
at.dms.backend.TreeWalker
node
- The node to be processed.protected void kill()
TreeWalker
kill
in class TreeWalker
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |