Class PhiEliminator


  • public class PhiEliminator
    extends Object
    Eliminates phi functions by inserting copies in predecessor blocks, splitting critical edges where needed.
    • Constructor Detail

      • PhiEliminator

        public PhiEliminator()
    • Method Detail

      • eliminate

        public void eliminate​(IRMethod method)
        Splits critical edges, keeps the phis that can stay stack-resident, materializes the rest as predecessor copies and then removes every phi from the method.
        Parameters:
        method - method to rewrite in place