at.dms.backend
Class PeepholeOptimizer

java.lang.Object
  |
  +--at.dms.backend.TreeWalker
        |
        +--at.dms.backend.PeepholeOptimizer

public class PeepholeOptimizer
extends TreeWalker

This class performs peephole optimizations.


Constructor Summary
PeepholeOptimizer(BasicBlock[] bblocks, BasicBlock[] eblocks)
          Creates a new instruction handle.
 
Method Summary
protected  void processNode(QNode node)
          Processes the node.
 void run()
          Runs the deadcode algorithm
 
Methods inherited from class at.dms.backend.TreeWalker
getBasicBlock, kill, removeNode, traverse
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeepholeOptimizer

public PeepholeOptimizer(BasicBlock[] bblocks,
                         BasicBlock[] eblocks)
Creates a new instruction handle.
Parameters:
instruction - the instruction.
prev - the handle of the next instruction in textual order.
Method Detail

run

public void run()
Runs the deadcode algorithm

processNode

protected void processNode(QNode node)
Description copied from class: TreeWalker
Processes the node.
Overrides:
processNode in class TreeWalker
Following copied from class: at.dms.backend.TreeWalker
Parameters:
node - The node to be processed.