summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2014-12-01 22:09:43 +0000
committerNicolas Geoffray <ngeoffray@google.com>2014-12-01 22:09:43 +0000
commit37b55ebd45a2f4514bee3e111bd49c06751da49d (patch)
tree21dd1ccc835b0546e8526492f34b7b53d1812b0c
parent05d5810c2b20ac83da82cef9a9677884af81147d (diff)
downloadart-37b55ebd45a2f4514bee3e111bd49c06751da49d.tar.gz
art-37b55ebd45a2f4514bee3e111bd49c06751da49d.tar.bz2
art-37b55ebd45a2f4514bee3e111bd49c06751da49d.zip
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
-rw-r--r--compiler/optimizing/optimizing_compiler.cc14
1 files changed, 0 insertions, 14 deletions
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<uint8_t> mapping_table;
SrcMap src_mapping_table;
codegen->BuildMappingTable(&mapping_table,