From 8f49d4b04bab40bfd32ed7c8dfe501dea172bd79 Mon Sep 17 00:00:00 2001 From: Matthew Gharrity Date: Thu, 14 Jul 2016 13:24:00 -0700 Subject: 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 --- compiler/optimizing/codegen_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/optimizing/codegen_test.cc') 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; -- cgit v1.2.3-59-g8ed1b