From 3c03503d66df3b4440f851ae7d0c4fae5e7872df Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Tue, 28 Oct 2014 10:46:40 +0000 Subject: Follow-up CL after hard float changes. Addressing comments from Zheng Xu. Change-Id: I8c599cdfab03373e82a1b90b711005c490bc6ca0 --- compiler/optimizing/code_generator.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/optimizing/code_generator.cc') diff --git a/compiler/optimizing/code_generator.cc b/compiler/optimizing/code_generator.cc index 28ff1cf83a..7699bf1a89 100644 --- a/compiler/optimizing/code_generator.cc +++ b/compiler/optimizing/code_generator.cc @@ -115,8 +115,8 @@ size_t CodeGenerator::FindFreeEntry(bool* array, size_t length) { return -1; } -size_t CodeGenerator::FindTwoFreeConsecutiveEntries(bool* array, size_t length) { - for (size_t i = 0; i < length - 1; ++i) { +size_t CodeGenerator::FindTwoFreeConsecutiveAlignedEntries(bool* array, size_t length) { + for (size_t i = 0; i < length - 1; i += 2) { if (!array[i] && !array[i + 1]) { array[i] = true; array[i + 1] = true; -- cgit v1.2.3-59-g8ed1b