|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.ssa.RedundantPhiElimination
Eliminate the redundant PHI instructions.
The redundant PHI instruction is defined as follows:
1) x=phi(x,x,x) (remove only)
2) x=phi(y,y,y) (regard as `x=y' and do copy propagation)
3) x=phi(y,y,x) (regard as `x=y' and do copy propagation)
| Field Summary | |
static int |
THR
The threshold of the debug print |
| Constructor Summary | |
RedundantPhiElimination(SsaEnvironment e)
Constructor |
|
| Method Summary | |
boolean |
doIt(Data data,
ImList args)
Transform the DATA component. |
boolean |
doIt(Function function,
ImList args)
Eliminate the redundant PHI instructions. |
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 RedundantPhiElimination(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 funcitonargs - The list of options
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||