Package proguard.dexfile.ir.ts
Class RemoveConstantFromSSA
- java.lang.Object
-
- proguard.dexfile.ir.ts.StatedTransformer
-
- proguard.dexfile.ir.ts.RemoveConstantFromSSA
-
- All Implemented Interfaces:
Transformer
public class RemoveConstantFromSSA extends StatedTransformer
1. Remove constant AssignStmt.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";
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Comparator<Local>
LOCAL_COMPARATOR
-
Constructor Summary
Constructors Constructor Description RemoveConstantFromSSA()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
transformReportChanged(IrMethod method)
-
Methods inherited from class proguard.dexfile.ir.ts.StatedTransformer
transform
-
-
-
-
Field Detail
-
LOCAL_COMPARATOR
public static final java.util.Comparator<Local> LOCAL_COMPARATOR
-
-
Method Detail
-
transformReportChanged
public boolean transformReportChanged(IrMethod method)
- Specified by:
transformReportChanged
in classStatedTransformer
-
-