[llvm-commits] [llvm] r48204 - /llvm/trunk/lib/CodeGen/RegAllocLinearScan.cpp

Evan Cheng evan.cheng at apple.com
Mon Mar 10 17:27:34 PDT 2008


Author: evancheng
Date: Mon Mar 10 19:27:34 2008
New Revision: 48204

URL: http://llvm.org/viewvc/llvm-project?rev=48204&view=rev
Log:
Temporarily revert 48175.

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=48204&r1=48203&r2=48204&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocLinearScan.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocLinearScan.cpp Mon Mar 10 19:27:34 2008
@@ -685,14 +685,8 @@
     }
 
     // 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: "





More information about the llvm-commits mailing list