diff options
| author | 2016-07-14 13:24:00 -0700 | |
|---|---|---|
| committer | 2016-07-20 09:33:48 -0700 | |
| commit | 8f49d4b04bab40bfd32ed7c8dfe501dea172bd79 (patch) | |
| tree | 53ebbc7573f6ebd9c53e00f62e93358e9c4405af /compiler/optimizing/codegen_test.cc | |
| parent | 360b4b0137ce5f0bb771e2ddbfd4735cae932565 (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/codegen_test.cc')
| -rw-r--r-- | compiler/optimizing/codegen_test.cc | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/compiler/optimizing/codegen_test.cc b/compiler/optimizing/codegen_test.cc index 6f487c5848..fe9a7af250 100644 --- a/compiler/optimizing/codegen_test.cc +++ b/compiler/optimizing/codegen_test.cc @@ -219,7 +219,7 @@ static void RunCode(CodeGenerator* codegen,    PrepareForRegisterAllocation(graph).Run();    liveness.Analyze(); -  RegisterAllocator(graph->GetArena(), codegen, liveness).AllocateRegisters(); +  RegisterAllocator::Create(graph->GetArena(), codegen, liveness)->AllocateRegisters();    hook_before_codegen(graph);    InternalCodeAllocator allocator; |