public class LocalConstantProp extends CompilerPhase
container| Constructor and Description |
|---|
LocalConstantProp() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
CompilerPhase |
newExecution(IR ir)
Return this instance of this phase.
|
void |
perform(IR ir)
Perform Local Constant propagation for a method.
|
void |
reportAdditionalStats()
Called when printing a measure compilation report to enable a phase
to report additional phase-specific statistics.
|
boolean |
shouldPerform(OptOptions options)
This method determines if the phase should be run, based on the
Options object it is passed.
|
dumpIR, dumpIR, getClassConstructor, getCompilerPhaseConstructor, getCompilerPhaseConstructor, performPhase, printingEnabled, setContainer, verifypublic LocalConstantProp()
public final boolean shouldPerform(OptOptions options)
CompilerPhaseshouldPerform in class CompilerPhaseoptions - the compiler options for the compilationpublic final String getName()
getName in class CompilerPhasepublic void reportAdditionalStats()
CompilerPhasereportAdditionalStats in class CompilerPhasepublic CompilerPhase newExecution(IR ir)
newExecution in class CompilerPhaseir - not usedpublic void perform(IR ir)
perform in class CompilerPhaseir - the IR to optimize