Class 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 Detail

      • LOCAL_COMPARATOR

        public static final java.util.Comparator<Local> LOCAL_COMPARATOR
    • Constructor Detail

      • RemoveConstantFromSSA

        public RemoveConstantFromSSA()