Examples of DeadCodeElimination


Examples of org.jakstab.transformation.DeadCodeElimination

      } else {
        // If control flow reconstruction finished normally and other analyses are configured, start them now

        // Simplify CFA
        logger.info("=== Simplifying CFA ===");
        DeadCodeElimination dce;
        long totalRemoved = 0;
        runAlgorithm(new ExpressionSubstitution(program));
        do {
          dce = new DeadCodeElimination(program);
          runAlgorithm(dce);
          totalRemoved += dce.getRemovalCount();
        } while (dce.getRemovalCount() > 0);
        logger.info("=== Finished CFA simplification, removed " + totalRemoved + " edges. ===");

        AnalysisManager mgr = AnalysisManager.getInstance();       
        List<ConfigurableProgramAnalysis> secondaryCPAs = new LinkedList<ConfigurableProgramAnalysis>();
        for (int i=0; i<Options.secondaryCPAs.getValue().length(); i++) {     
View Full Code Here

Examples of org.jruby.compiler.ir.compiler_pass.opts.DeadCodeElimination

        // and we may need to update the method to return the new method.  Also,
        // if this scope is held in multiple locations how do we update all references?
        runCompilerPass(new LocalOptimizationPass());
        runCompilerPass(new CFG_Builder());
        runCompilerPass(new LiveVariableAnalysis());
        runCompilerPass(new DeadCodeElimination());
        runCompilerPass(new AddBindingInstructions());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.