diff options
Diffstat (limited to 'compiler/optimizing/register_allocator_test.cc')
-rw-r--r-- | compiler/optimizing/register_allocator_test.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/compiler/optimizing/register_allocator_test.cc b/compiler/optimizing/register_allocator_test.cc index 8d75db91d2..f677e840ef 100644 --- a/compiler/optimizing/register_allocator_test.cc +++ b/compiler/optimizing/register_allocator_test.cc @@ -39,9 +39,7 @@ static bool Check(const uint16_t* data) { HGraphBuilder builder(&allocator); const DexFile::CodeItem* item = reinterpret_cast<const DexFile::CodeItem*>(data); HGraph* graph = builder.BuildGraph(*item); - graph->BuildDominatorTree(); - graph->TransformToSSA(); - graph->AnalyzeNaturalLoops(); + graph->TryBuildingSsa(); x86::CodeGeneratorX86 codegen(graph); SsaLivenessAnalysis liveness(*graph, &codegen); liveness.Analyze(); @@ -253,9 +251,7 @@ static HGraph* BuildSSAGraph(const uint16_t* data, ArenaAllocator* allocator) { HGraphBuilder builder(allocator); const DexFile::CodeItem* item = reinterpret_cast<const DexFile::CodeItem*>(data); HGraph* graph = builder.BuildGraph(*item); - graph->BuildDominatorTree(); - graph->TransformToSSA(); - graph->AnalyzeNaturalLoops(); + graph->TryBuildingSsa(); return graph; } |