summaryrefslogtreecommitdiffstats
path: root/compiler/optimizing/code_generator.cc
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2014-10-28 10:46:40 +0000
committerNicolas Geoffray <ngeoffray@google.com>2014-10-28 10:46:40 +0000
commit3c03503d66df3b4440f851ae7d0c4fae5e7872df (patch)
tree6f10a0da8e1a06d4a0a88e015db091a824aec7fb /compiler/optimizing/code_generator.cc
parentd3271e8a48768ed53bfa2515474b57245e7d9a41 (diff)
downloadandroid_art-3c03503d66df3b4440f851ae7d0c4fae5e7872df.tar.gz
android_art-3c03503d66df3b4440f851ae7d0c4fae5e7872df.tar.bz2
android_art-3c03503d66df3b4440f851ae7d0c4fae5e7872df.zip
Follow-up CL after hard float changes.
Addressing comments from Zheng Xu. Change-Id: I8c599cdfab03373e82a1b90b711005c490bc6ca0
Diffstat (limited to 'compiler/optimizing/code_generator.cc')
-rw-r--r--compiler/optimizing/code_generator.cc4
1 files changed, 2 insertions, 2 deletions
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;