summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-03-10 21:27:20 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-03-10 21:27:20 +0000
commit7abdb438a1e25339b933b226f7a87d8e1aa0b2b5 (patch)
treeae73a0aa46f54cf825f2dd0226b4c29c2c56aded /llvm
parent4b3a7fa8239b1622c3ac9b7e94a215ad9ecdd360 (diff)
downloadbcm5719-llvm-7abdb438a1e25339b933b226f7a87d8e1aa0b2b5.tar.gz
bcm5719-llvm-7abdb438a1e25339b933b226f7a87d8e1aa0b2b5.zip
If the register allocator ran out of registers, just abort for now.
llvm-svn: 48175
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/RegAllocLinearScan.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLinearScan.cpp b/llvm/lib/CodeGen/RegAllocLinearScan.cpp
index d43cc19683c..144f0a7d430 100644
--- a/llvm/lib/CodeGen/RegAllocLinearScan.cpp
+++ b/llvm/lib/CodeGen/RegAllocLinearScan.cpp
@@ -685,8 +685,14 @@ void RALinScan::assignRegOrStackSlotAtInterval(LiveInterval* cur)
}
// 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: "
OpenPOWER on IntegriCloud