org.jikesrvm.compilers.opt.controlflow
Class DominatorTreePhase

java.lang.Object
  extended by org.jikesrvm.compilers.opt.driver.CompilerPhase
      extended by org.jikesrvm.compilers.opt.controlflow.DominatorTreePhase

public final class DominatorTreePhase
extends CompilerPhase

Driver routine for dominator tree computation


Field Summary
 
Fields inherited from class org.jikesrvm.compilers.opt.driver.CompilerPhase
container
 
Constructor Summary
DominatorTreePhase()
           
 
Method Summary
 String getName()
          Returns "Dominator Tree"
 void perform(IR ir)
          This is the method that actually does the work of the phase.
 boolean printingEnabled(OptOptions options, boolean before)
          Should the IR be printed before and/or after this phase?
 boolean shouldPerform(OptOptions options)
          This method determines if the phase should be run, based on the Options object it is passed.
 
Methods inherited from class org.jikesrvm.compilers.opt.driver.CompilerPhase
dumpIR, dumpIR, getClassConstructor, getCompilerPhaseConstructor, getCompilerPhaseConstructor, newExecution, performPhase, reportAdditionalStats, setContainer, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DominatorTreePhase

public DominatorTreePhase()
Method Detail

shouldPerform

public boolean shouldPerform(OptOptions options)
Description copied from class: CompilerPhase
This method determines if the phase should be run, based on the Options object it is passed. By default, phases are always performed. Subclasses should override this method if they only want to be performed conditionally.

Overrides:
shouldPerform in class CompilerPhase
Parameters:
options - the compiler options for the compilation
Returns:
true if the phase should be performed

getName

public String getName()
Returns "Dominator Tree"

Specified by:
getName in class CompilerPhase
Returns:
"Dominator Tree"

printingEnabled

public boolean printingEnabled(OptOptions options,
                               boolean before)
Should the IR be printed before and/or after this phase?

Overrides:
printingEnabled in class CompilerPhase
Parameters:
options - controlling compiler options
before - query control
Returns:
false

perform

public void perform(IR ir)
Description copied from class: CompilerPhase
This is the method that actually does the work of the phase.

Specified by:
perform in class CompilerPhase
Parameters:
ir - the IR on which to apply the phase