public class RemoveConstantFromSSA extends StatedTransformer
a = "123"; return a;
to
return "123";
2. Remove Phi if all value are equal
a = "123"; // ... b = "123"; // ... c = PHI(a, b); return c;
to
// ... return "123";
| Modifier and Type | Field and Description |
|---|---|
static java.util.Comparator<Local> |
LOCAL_COMPARATOR |
| Constructor and Description |
|---|
RemoveConstantFromSSA() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
transformReportChanged(IrMethod method) |
transformpublic static final java.util.Comparator<Local> LOCAL_COMPARATOR
public boolean transformReportChanged(IrMethod method)
transformReportChanged in class StatedTransformer