diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-03-10 21:27:20 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-03-10 21:27:20 +0000 |
commit | a3413804f41f6155d6d4ab8a8ff1abf7c424c3a5 (patch) | |
tree | f217e2de2725bad110ca5e6a96f026fc2f7e0751 /lib/CodeGen/RegAllocLinearScan.cpp | |
parent | 8e6da15e54125db38c0ae32f7a6b2273c792c588 (diff) | |
download | external_llvm-a3413804f41f6155d6d4ab8a8ff1abf7c424c3a5.zip external_llvm-a3413804f41f6155d6d4ab8a8ff1abf7c424c3a5.tar.gz external_llvm-a3413804f41f6155d6d4ab8a8ff1abf7c424c3a5.tar.bz2 |
If the register allocator ran out of registers, just abort for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48175 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocLinearScan.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocLinearScan.cpp b/lib/CodeGen/RegAllocLinearScan.cpp index d43cc19..144f0a7 100644 --- a/lib/CodeGen/RegAllocLinearScan.cpp +++ b/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: " |