|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.ssa.CommonSubexpressionElimination
SSA based common subexpression elimination.
If the common subexpression is valid where in the other expressions,
this optimizer replace subexpressions which is used in the other expressions
into the temporary variable.
Also, the optimizer have Efficient Question Propagation (EQP). So, the
subexpression is not valid clearly, the optimizer propagates the question,
"Is it valid subexpression?," to the predecessors.
| Field Summary | |
static int |
THR
The threshold of debug print |
| Constructor Summary | |
CommonSubexpressionElimination(SsaEnvironment e)
Constructor. |
|
| Method Summary | |
boolean |
doIt(Data data,
ImList args)
Transform the DATA component. |
boolean |
doIt(Function function,
ImList args)
Do SSA based common subexpression elimination to the current function. |
java.lang.String |
name()
Return the name of the transforming engine. |
java.lang.String |
subject()
Return brief description of the tranformation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int THR
| Constructor Detail |
public CommonSubexpressionElimination(SsaEnvironment e)
e - The environment of the SSA module| Method Detail |
public boolean doIt(Data data,
ImList args)
LocalTransformer
doIt in interface LocalTransformerdata - DATA to be transformed.args - list of optional arguments.
public java.lang.String name()
Transformer
name in interface Transformerpublic java.lang.String subject()
Transformer
subject in interface Transformer
public boolean doIt(Function function,
ImList args)
doIt in interface LocalTransformerfunction - The current functionargs - The list of options
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||