summaryrefslogtreecommitdiff
path: root/compiler/optimizing/optimizing_compiler.cc
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2014-07-14 11:35:58 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2014-07-10 20:09:49 +0000
commit3914a79dc234106eeeac4790373e909c3249973e (patch)
treef9940f60c132795d2f5865ba84b942916f076313 /compiler/optimizing/optimizing_compiler.cc
parent1cad41d900201422cedcbe7837935d17bbf28ed8 (diff)
parent7dc206a53a42a658f52d5cb0b7e79b47da370c9b (diff)
Merge "Add two phi pruning phases."
Diffstat (limited to 'compiler/optimizing/optimizing_compiler.cc')
-rw-r--r--compiler/optimizing/optimizing_compiler.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/optimizing/optimizing_compiler.cc b/compiler/optimizing/optimizing_compiler.cc
index b14753c580..b621e510f3 100644
--- a/compiler/optimizing/optimizing_compiler.cc
+++ b/compiler/optimizing/optimizing_compiler.cc
@@ -25,6 +25,7 @@
#include "graph_visualizer.h"
#include "nodes.h"
#include "register_allocator.h"
+#include "ssa_phi_elimination.h"
#include "ssa_liveness_analysis.h"
#include "utils/arena_allocator.h"
@@ -129,8 +130,11 @@ CompiledMethod* OptimizingCompiler::TryCompile(const DexFile::CodeItem* code_ite
graph->BuildDominatorTree();
graph->TransformToSSA();
visualizer.DumpGraph("ssa");
-
graph->FindNaturalLoops();
+
+ SsaRedundantPhiElimination(graph).Run();
+ SsaDeadPhiElimination(graph).Run();
+
SsaLivenessAnalysis liveness(*graph, codegen);
liveness.Analyze();
visualizer.DumpGraph(kLivenessPassName);