org.jikesrvm.compilers.opt.controlflow
Class DominatorTreePhase
java.lang.Object
org.jikesrvm.compilers.opt.driver.CompilerPhase
org.jikesrvm.compilers.opt.controlflow.DominatorTreePhase
public final class DominatorTreePhase
- extends CompilerPhase
Driver routine for dominator tree computation
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DominatorTreePhase
public DominatorTreePhase()
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 optionsbefore
- 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