Add some comments.
authorChris Lattner <sabre@nondot.org>
Sat, 25 Mar 2006 23:00:56 +0000 (23:00 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 25 Mar 2006 23:00:56 +0000 (23:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27133 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/RegAllocLinearScan.cpp

index 252fcfc2e83131bab476c506e8195b8635e4fe9a..59467c1e0f876e1472fa561fbe7872e0daba7dae 100644 (file)
@@ -539,6 +539,7 @@ void RA::assignRegOrStackSlotAtInterval(LiveInterval* cur)
  
   DEBUG(std::cerr << "\tassigning stack slot at interval "<< *cur << ":\n");
 
+  // Find a register to spill.
   float minWeight = float(HUGE_VAL);
   unsigned minReg = 0;
   for (TargetRegisterClass::iterator i = RC->allocation_order_begin(*mf_),
@@ -549,6 +550,9 @@ void RA::assignRegOrStackSlotAtInterval(LiveInterval* cur)
       minReg = reg;
     }
   }
+  
+  // If we didn't find a register that is spillable, try aliases?
+  
 // FIXME:  assert(minReg && "Didn't find any reg!");
   DEBUG(std::cerr << "\t\tregister with min weight: "
         << mri_->getName(minReg) << " (" << minWeight << ")\n");