From 829280cc90b7a84db42864589b4bafb4c94a79d9 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Wed, 28 Jan 2015 10:20:37 +0000 Subject: Finally implement Location::kNoOutputOverlap. The [i, i + 1) interval scheme we chose for representing lifetime positions is not optimal for doing this optimization. It however doesn't prevent recognizing a non-split interval during the TryAllocateFreeReg phase, and try to re-use its inputs' registers. Change-Id: I80a2823b0048d3310becfc5f5fb7b1230dfd8201 --- compiler/optimizing/code_generator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/optimizing/code_generator.cc') diff --git a/compiler/optimizing/code_generator.cc b/compiler/optimizing/code_generator.cc index dc2446df61..fd4e391470 100644 --- a/compiler/optimizing/code_generator.cc +++ b/compiler/optimizing/code_generator.cc @@ -290,7 +290,7 @@ void CodeGenerator::AllocateRegistersLocally(HInstruction* instruction) const { result_location = locations->InAt(0); break; } - locations->SetOut(result_location); + locations->UpdateOut(result_location); } } -- cgit v1.2.3-59-g8ed1b