Class PersistentCheckElimination

java.lang.Object
EDU.purdue.cs.bloat.trans.PersistentCheckElimination

public class PersistentCheckElimination extends Object
Attempts to remove residency checks an update checks from a control flow graph.
  • Field Details

    • DEBUG

      public static boolean DEBUG
  • Constructor Details

    • PersistentCheckElimination

      public PersistentCheckElimination()
  • Method Details

    • transform

      public void transform(FlowGraph cfg)
      Examines each residency check (RCExpr) and update check (UCExpr) and determines whether or it is redundent. If a residency check checks something that we know is resident (i.e. the this pointer or the result of an object creation), then the check is redundent. Once an update check has been performed on a value, all subsequent checks are redundent. Redundent checks are removed from the control flow graph.
      See Also: