[llvm-commits] [llvm] r121162 - /llvm/trunk/lib/CodeGen/RegAllocBasic.cpp

Jakob Stoklund Olesen stoklund at 2pi.dk
Tue Dec 7 10:51:27 PST 2010


Author: stoklund
Date: Tue Dec  7 12:51:27 2010
New Revision: 121162

URL: http://llvm.org/viewvc/llvm-project?rev=121162&view=rev
Log:
Simplify assertion.

Modified:
    llvm/trunk/lib/CodeGen/RegAllocBasic.cpp

Modified: llvm/trunk/lib/CodeGen/RegAllocBasic.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocBasic.cpp?rev=121162&r1=121161&r2=121162&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocBasic.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocBasic.cpp Tue Dec  7 12:51:27 2010
@@ -443,15 +443,8 @@
 
     if (!spillInterferences(VirtReg, *PhysRegI, SplitVRegs)) continue;
 
-    unsigned InterferingReg = checkPhysRegInterference(VirtReg, *PhysRegI);
-    if (InterferingReg != 0) {
-      const LiveSegment &seg =
-        *Queries[InterferingReg].firstInterference().liveUnionPos();
-
-      dbgs() << "spilling cannot free " << TRI->getName(*PhysRegI) <<
-        " for " << VirtReg.reg << " with interference " << *seg.VirtReg << "\n";
-      llvm_unreachable("Interference after spill.");
-    }
+    assert(checkPhysRegInterference(VirtReg, *PhysRegI) == 0 &&
+           "Interference after spill.");
     // Tell the caller to allocate to this newly freed physical register.
     return *PhysRegI;
   }





More information about the llvm-commits mailing list