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()); }
public override List <OptimizationPassBase> BuildOptimizationPasses2() { EnabledCategories.Add(OptimizationCategories.Inliner); EnabledCategories.Add(OptimizationCategories.Global); return(new OptimizationPassBase[] { //new OneAssignmentDeadStoreAssignment(), //?? // //?? // CSE }.ToList()); }