[llvm-commits] [llvm] r48175 - /llvm/trunk/lib/CodeGen/RegAllocLinearScan.cpp
Evan Cheng
evan.cheng at apple.com
Mon Mar 10 14:27:21 PDT 2008
Author: evancheng
Date: Mon Mar 10 16:27:20 2008
New Revision: 48175
URL: http://llvm.org/viewvc/llvm-project?rev=48175&view=rev
Log:
If the register allocator ran out of registers, just abort for now.
Modified:
llvm/trunk/lib/CodeGen/RegAllocLinearScan.cpp
Modified: llvm/trunk/lib/CodeGen/RegAllocLinearScan.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocLinearScan.cpp?rev=48175&r1=48174&r2=48175&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocLinearScan.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocLinearScan.cpp Mon Mar 10 16:27:20 2008
@@ -685,8 +685,14 @@
}
// All registers must have inf weight. Just grab one!
- if (!minReg)
+ if (!minReg) {
+ if (active_.size() == 0) {
+ // FIXME: All the registers are occupied by fixed intervals.
+ cerr << "Register allocator ran out of registers!\n";
+ abort();
+ }
minReg = *RC->allocation_order_begin(*mf_);
+ }
}
DOUT << "\t\tregister with min weight: "
More information about the llvm-commits
mailing list