diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-03-11 00:27:34 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-03-11 00:27:34 +0000 |
commit | 524f9617428d6f28f345b6b5177d7873b930085c (patch) | |
tree | 21cf3a31889f603e0bd9e894c755660ee267dee6 /lib/CodeGen/RegAllocLinearScan.cpp | |
parent | 7fcb6b65c97f6e2e96643967fca735df528dab8e (diff) | |
download | external_llvm-524f9617428d6f28f345b6b5177d7873b930085c.zip external_llvm-524f9617428d6f28f345b6b5177d7873b930085c.tar.gz external_llvm-524f9617428d6f28f345b6b5177d7873b930085c.tar.bz2 |
Temporarily revert 48175.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48204 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocLinearScan.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/CodeGen/RegAllocLinearScan.cpp b/lib/CodeGen/RegAllocLinearScan.cpp index 144f0a7..d43cc19 100644 --- a/lib/CodeGen/RegAllocLinearScan.cpp +++ b/lib/CodeGen/RegAllocLinearScan.cpp @@ -685,14 +685,8 @@ void RALinScan::assignRegOrStackSlotAtInterval(LiveInterval* cur) } // All registers must have inf weight. Just grab one! - if (!minReg) { - if (active_.size() == 0) { - // FIXME: All the registers are occupied by fixed intervals. - cerr << "Register allocator ran out of registers!\n"; - abort(); - } + if (!minReg) minReg = *RC->allocation_order_begin(*mf_); - } } DOUT << "\t\tregister with min weight: " |