From d6c205eb9b04bcfa072cd5ffdd93deef167ec340 Mon Sep 17 00:00:00 2001 From: David Brazdil Date: Tue, 7 Jun 2016 14:20:52 +0100 Subject: ART: Remove redundant MoveInstructionBefore method Change-Id: If53d7011197cc6b9c1702a3d98ef11b59eb76f0c --- compiler/optimizing/select_generator.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/optimizing/select_generator.cc') diff --git a/compiler/optimizing/select_generator.cc b/compiler/optimizing/select_generator.cc index e52476ea03..e409035d9d 100644 --- a/compiler/optimizing/select_generator.cc +++ b/compiler/optimizing/select_generator.cc @@ -96,10 +96,10 @@ void HSelectGenerator::Run() { // TODO(dbrazdil): This puts an instruction between If and its condition. // Implement moving of conditions to first users if possible. if (!true_block->IsSingleGoto()) { - true_block->MoveInstructionBefore(true_block->GetFirstInstruction(), if_instruction); + true_block->GetFirstInstruction()->MoveBefore(if_instruction); } if (!false_block->IsSingleGoto()) { - false_block->MoveInstructionBefore(false_block->GetFirstInstruction(), if_instruction); + false_block->GetFirstInstruction()->MoveBefore(if_instruction); } DCHECK(true_block->IsSingleGoto()); DCHECK(false_block->IsSingleGoto()); -- cgit v1.2.3-59-g8ed1b