org.jikesrvm.compilers.opt.ssa
Class SSATuneUp.TuneUpPreparation

java.lang.Object
  extended by org.jikesrvm.compilers.opt.driver.CompilerPhase
      extended by org.jikesrvm.compilers.opt.ssa.SSATuneUp.TuneUpPreparation
Enclosing class:
SSATuneUp

public static class SSATuneUp.TuneUpPreparation
extends CompilerPhase

This class sets up the IR state prior to entering SSA.


Field Summary
private static Constructor<CompilerPhase> constructor
          Constructor for this compiler phase
private  CompilerPhase dominators
          Compiler phases necessary to re-build dominators and dominance frontier
private  CompilerPhase frontier
          Compiler phases necessary to re-build dominators and dominance frontier
 
Fields inherited from class org.jikesrvm.compilers.opt.driver.CompilerPhase
container
 
Constructor Summary
SSATuneUp.TuneUpPreparation()
           
 
Method Summary
 Constructor<CompilerPhase> getClassConstructor()
          Get a constructor object for this compiler phase
 String getName()
           
 void perform(IR ir)
          register in the IR the SSA properties we need for simple scalar optimizations
 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, getCompilerPhaseConstructor, getCompilerPhaseConstructor, newExecution, performPhase, printingEnabled, reportAdditionalStats, setContainer, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dominators

private final CompilerPhase dominators
Compiler phases necessary to re-build dominators and dominance frontier


frontier

private final CompilerPhase frontier
Compiler phases necessary to re-build dominators and dominance frontier


constructor

private static final Constructor<CompilerPhase> constructor
Constructor for this compiler phase

Constructor Detail

SSATuneUp.TuneUpPreparation

public SSATuneUp.TuneUpPreparation()
Method Detail

getClassConstructor

public Constructor<CompilerPhase> getClassConstructor()
Get a constructor object for this compiler phase

Overrides:
getClassConstructor in class CompilerPhase
Returns:
compiler phase constructor

shouldPerform

public final 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 final String getName()
Specified by:
getName in class CompilerPhase
Returns:
a String which is the name of the phase.

perform

public final void perform(IR ir)
register in the IR the SSA properties we need for simple scalar optimizations

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