Changes in directory llvm/lib/CodeGen:
RegAllocLinearScan.cpp updated: 1.119 -> 1.120 --- Log message: Add some comments. --- Diffs of the changes: (+4 -0) RegAllocLinearScan.cpp | 4 ++++ 1 files changed, 4 insertions(+) Index: llvm/lib/CodeGen/RegAllocLinearScan.cpp diff -u llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.119 llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.120 --- llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.119 Thu Feb 23 00:44:17 2006 +++ llvm/lib/CodeGen/RegAllocLinearScan.cpp Sat Mar 25 17:00:56 2006 @@ -539,6 +539,7 @@ 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 @@ 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"); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits