Class RedundantCopyElimination

  • All Implemented Interfaces:
    IRTransform

    public class RedundantCopyElimination
    extends Object
    implements IRTransform
    Removes redundant copy instructions and simplifies assignment chains.
    • Constructor Detail

      • RedundantCopyElimination

        public RedundantCopyElimination()
    • Method Detail

      • getName

        public String getName()
        Description copied from interface: IRTransform
        Gets the name of this transformation.
        Specified by:
        getName in interface IRTransform
        Returns:
        the transformation name
      • run

        public boolean run​(IRMethod method)
        Description copied from interface: IRTransform
        Runs the transformation on the specified method.
        Specified by:
        run in interface IRTransform
        Parameters:
        method - the method to transform
        Returns:
        true if the method was modified