OSDN Git Service

ART: Fix typo in IsCallerSave
authorMatthew Gharrity <gharrma@google.com>
Mon, 15 Aug 2016 14:56:41 +0000 (07:56 -0700)
committerAndreas Gampe <agampe@google.com>
Fri, 2 Dec 2016 16:32:22 +0000 (16:32 +0000)
Correctly refer to floating point registers, if necessary. This
ensures that we correctly start allocating caller-save FPRs.

Bug: 31275200
Test: ART_TEST_OPTIMIZING_GRAPH_COLOR=true m test-art-host
Change-Id: I420b66f0a000636e8370c739003de3cf53af3e30

compiler/optimizing/register_allocator_graph_color.cc

index aa0d371..9064f86 100644 (file)
@@ -1749,7 +1749,7 @@ static std::bitset<kMaxNumRegs> BuildConflictMask(Container& intervals) {
 bool RegisterAllocatorGraphColor::IsCallerSave(size_t reg, bool processing_core_regs) {
   return processing_core_regs
       ? !codegen_->IsCoreCalleeSaveRegister(reg)
-      : !codegen_->IsCoreCalleeSaveRegister(reg);
+      : !codegen_->IsFloatingPointCalleeSaveRegister(reg);
 }
 
 static bool RegisterIsAligned(size_t reg) {