summaryrefslogtreecommitdiff
path: root/compiler/optimizing/live_ranges_test.cc
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2014-10-10 11:22:50 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2014-10-10 11:22:50 +0000
commitb76c5495c4879fcfa0866b1490031a3123baf9ee (patch)
tree06180f586f6a3de4398091d96cf5d907c4b65a3a /compiler/optimizing/live_ranges_test.cc
parent4471609d86b7e846b26bebe3373707a10c222e71 (diff)
parent360231a056e796c36ffe62348507e904dc9efb9b (diff)
Merge "Fix code generation of materialized conditions."
Diffstat (limited to 'compiler/optimizing/live_ranges_test.cc')
-rw-r--r--compiler/optimizing/live_ranges_test.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/optimizing/live_ranges_test.cc b/compiler/optimizing/live_ranges_test.cc
index 8be47461b2..eafc3e1483 100644
--- a/compiler/optimizing/live_ranges_test.cc
+++ b/compiler/optimizing/live_ranges_test.cc
@@ -21,6 +21,7 @@
#include "dex_instruction.h"
#include "nodes.h"
#include "optimizing_unit_test.h"
+#include "prepare_for_register_allocation.h"
#include "ssa_liveness_analysis.h"
#include "utils/arena_allocator.h"
@@ -38,6 +39,8 @@ static HGraph* BuildGraph(const uint16_t* data, ArenaAllocator* allocator) {
graph->BuildDominatorTree();
graph->TransformToSSA();
graph->FindNaturalLoops();
+ // `Inline` conditions into ifs.
+ PrepareForRegisterAllocation(graph).Run();
return graph;
}