示例#1
0
        public override List <OptimizationPassBase> BuildOptimizationPasses1()
        {
            EnabledCategories.Add(OptimizationCategories.Propagation);
            EnabledCategories.Add(OptimizationCategories.DeadCodeElimination);
            EnabledCategories.Add(OptimizationCategories.Analysis);
            EnabledCategories.Add(OptimizationCategories.CommonSubexpressionsElimination);

            return(new OptimizationPassBase[]
            {
                //new FoldVariablesDefinitionsOptimizationPass(),
            }.ToList());
        }
示例#2
0
        public override List <OptimizationPassBase> BuildOptimizationPasses2()
        {
            EnabledCategories.Add(OptimizationCategories.Inliner);
            EnabledCategories.Add(OptimizationCategories.Global);
            return(new OptimizationPassBase[]
            {
                //new OneAssignmentDeadStoreAssignment(), //??
                //  //??

                // CSE
            }.ToList());
        }