org.jikesrvm.compilers.opt.controlflow
Class LoopAnalysis

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

public class LoopAnalysis
extends CompilerPhase

The driver that creates an annotated AnnotatedLSTGraph.

See Also:
AnnotatedLSTGraph

Field Summary
 
Fields inherited from class org.jikesrvm.compilers.opt.driver.CompilerPhase
container
 
Constructor Summary
LoopAnalysis()
           
 
Method Summary
 String getName()
          Return a string name for this phase.
 void perform(IR ir)
          This is the method that actually does the work of the phase.
 boolean shouldPerform(OptOptions options)
          This phase is disabled by default.
 
Methods inherited from class org.jikesrvm.compilers.opt.driver.CompilerPhase
dumpIR, dumpIR, getClassConstructor, 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
 

Constructor Detail

LoopAnalysis

public LoopAnalysis()
Method Detail

getName

public final String getName()
Return a string name for this phase.

Specified by:
getName in class CompilerPhase
Returns:
"Loop Analysis"

shouldPerform

public boolean shouldPerform(OptOptions options)
This phase is disabled by default.

It will run only on O3 but O2 is the default maximum optimization level.

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

perform

public final 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