Class StackPRE

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

public class StackPRE extends Object
Eliminate partially redundant local variable loads and stores by replacing them with stack variables and dups. The algorithm is similar to SSAPRE, except: We need to place phis for locals at the IDF of the blocks containing defs and uses (not just defs).
  • Field Details

    • DEBUG

      public static boolean DEBUG
    • cfg

      protected FlowGraph cfg
    • varphis

      protected List[] varphis
    • stackvars

      protected List[] stackvars
    • worklist

      protected EDU.purdue.cs.bloat.trans.StackPRE.Worklist worklist
  • Constructor Details

  • Method Details

    • transform

      public void transform()
    • varPhisAtBlock

      public List varPhisAtBlock(Block block)