From 850e143cbf20f9e071d5f2389a0ab8d4982d5dc8 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Tue, 11 Mar 2008 00:27:34 +0000 Subject: [PATCH] Temporarily revert 48175. llvm-svn: 48204 --- llvm/lib/CodeGen/RegAllocLinearScan.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/llvm/lib/CodeGen/RegAllocLinearScan.cpp b/llvm/lib/CodeGen/RegAllocLinearScan.cpp index 144f0a7d430f..d43cc19683c4 100644 --- a/llvm/lib/CodeGen/RegAllocLinearScan.cpp +++ b/llvm/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: "