From a7062e05e6048c7f817d784a5b94e3122e25b1ec Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Thu, 22 May 2014 12:50:17 +0100 Subject: Add a linear scan register allocator to the optimizing compiler. This is a "by-the-book" implementation. It currently only deals with allocating registers, with no hint optimizations. The changes remaining to make it functional are: - Allocate spill slots. - Resolution and placements of Move instructions. - Connect it to the code generator. Change-Id: Ie0b2f6ba1b98da85425be721ce4afecd6b4012a4 --- compiler/optimizing/nodes.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/optimizing/nodes.cc') diff --git a/compiler/optimizing/nodes.cc b/compiler/optimizing/nodes.cc index 74ba5208c4..752466b0b3 100644 --- a/compiler/optimizing/nodes.cc +++ b/compiler/optimizing/nodes.cc @@ -388,6 +388,7 @@ void HInstructionList::RemoveInstruction(HInstruction* instruction) { } void HInstruction::ReplaceWith(HInstruction* other) { + DCHECK(other != nullptr); for (HUseIterator it(GetUses()); !it.Done(); it.Advance()) { HUseListNode* current = it.Current(); HInstruction* user = current->GetUser(); -- cgit v1.2.3-59-g8ed1b