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
| 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)
- Should this phase be performed?
- Overrides:
shouldPerform in class CompilerPhase
- Parameters:
options - controlling compiler options
- Returns:
- true or false
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:
- true or false.
perform
public void perform(IR ir)
- Main driver.
- Specified by:
perform in class CompilerPhase
- Parameters:
ir - the governing IR