at.dms.backend
Class DeadcodeElimination

java.lang.Object
  extended by at.dms.backend.TreeWalker
      extended by at.dms.backend.DeadcodeElimination

public class DeadcodeElimination
extends TreeWalker

This class removes deadcode generated by optimizations or code transformation


Constructor Summary
DeadcodeElimination(at.dms.backend.BasicBlock[] bblocks, at.dms.backend.BasicBlock[] eblocks)
          Creates a new instruction handle.
 
Method Summary
protected  void kill()
          Called when a branch is reached
protected  void processNode(at.dms.backend.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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeadcodeElimination

public DeadcodeElimination(at.dms.backend.BasicBlock[] bblocks,
                           at.dms.backend.BasicBlock[] eblocks)
Creates a new instruction handle. BUGGY CUT AND PAST COMMENT

Method Detail

run

public void run()
Runs the deadcode algorithm


processNode

protected void processNode(at.dms.backend.QNode node)
Description copied from class: TreeWalker
Processes the node

Specified by:
processNode in class TreeWalker
Parameters:
node - the node to be processed

kill

protected void kill()
Description copied from class: TreeWalker
Called when a branch is reached

Overrides:
kill in class TreeWalker