From 37b55ebd45a2f4514bee3e111bd49c06751da49d Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Mon, 1 Dec 2014 22:09:43 +0000 Subject: Don't run optimizations after baseline. We have enough coverage now. This was also motivated by having to call RunOptimizations instead, which does invoke InstructionSimplifier, required by the code generators (for, e.g. removing useless HTypeConversion nodes). Change-Id: I4e616dae771b8ced60e1f418e3da834f44edb717 --- compiler/optimizing/optimizing_compiler.cc | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'compiler/optimizing') diff --git a/compiler/optimizing/optimizing_compiler.cc b/compiler/optimizing/optimizing_compiler.cc index d8533eb8bf..34485a3a2f 100644 --- a/compiler/optimizing/optimizing_compiler.cc +++ b/compiler/optimizing/optimizing_compiler.cc @@ -319,20 +319,6 @@ CompiledMethod* OptimizingCompiler::Compile(const DexFile::CodeItem* code_item, unoptimized_compiled_methods_++; codegen->CompileBaseline(&allocator); - if (CanOptimize(*code_item)) { - // Run these phases to get some test coverage. - graph->BuildDominatorTree(); - graph->TransformToSSA(); - visualizer.DumpGraph("ssa"); - graph->FindNaturalLoops(); - SsaRedundantPhiElimination(graph).Run(); - SsaDeadPhiElimination(graph).Run(); - GVNOptimization(graph).Run(); - SsaLivenessAnalysis liveness(*graph, codegen); - liveness.Analyze(); - visualizer.DumpGraph(kLivenessPassName); - } - std::vector mapping_table; SrcMap src_mapping_table; codegen->BuildMappingTable(&mapping_table, -- cgit v1.2.3-59-g8ed1b