|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.ssa.Coalescing
Coalescing
Perform coalescing proposed by Chaitin after the back translation to
normal form. This coalesces copy-related variables whose live ranges do not
interfere each other. In general, after the back translation from SSA form,
there are some copy assign statements in the program. Some copy assign
statements only change the names of variables, that is, they are useless.
Coalescing these variables eliminates the useless copy assign statements.
This optimization is done after the back translation from SSA form.
| Field Summary | |
static int |
THR
The threshold of debug print |
| Constructor Summary | |
Coalescing(SsaEnvironment e)
Constructor |
|
| Method Summary | |
boolean |
doIt(Data data,
ImList args)
Transform the DATA component. |
boolean |
doIt(Function function,
ImList args)
Do coalescing 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 Coalescing(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 fucntionargs - The list of options
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||