summaryrefslogtreecommitdiff
path: root/compiler/optimizing/optimizing_compiler.cc
diff options
context:
space:
mode:
author Matthew Gharrity <gharrma@google.com> 2016-07-14 13:24:00 -0700
committer Matthew Gharrity <gharrma@google.com> 2016-07-20 09:33:48 -0700
commit8f49d4b04bab40bfd32ed7c8dfe501dea172bd79 (patch)
tree53ebbc7573f6ebd9c53e00f62e93358e9c4405af /compiler/optimizing/optimizing_compiler.cc
parent360b4b0137ce5f0bb771e2ddbfd4735cae932565 (diff)
Refactor register allocation to be pluggable
Allow alternate register allocation strategies to be implemented in subclasses of a common register allocation base class. Test: m test-art-host Change-Id: I7c5866aa9ddff8f53fcaf721bad47654ab221b4f
Diffstat (limited to 'compiler/optimizing/optimizing_compiler.cc')
-rw-r--r--compiler/optimizing/optimizing_compiler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/optimizing_compiler.cc b/compiler/optimizing/optimizing_compiler.cc
index 80affc3d66..77ae10adfc 100644
--- a/compiler/optimizing/optimizing_compiler.cc
+++ b/compiler/optimizing/optimizing_compiler.cc
@@ -531,7 +531,7 @@ static void AllocateRegisters(HGraph* graph,
}
{
PassScope scope(RegisterAllocator::kRegisterAllocatorPassName, pass_observer);
- RegisterAllocator(graph->GetArena(), codegen, liveness).AllocateRegisters();
+ RegisterAllocator::Create(graph->GetArena(), codegen, liveness)->AllocateRegisters();
}
}