Simplify assertion.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 7 Dec 2010 18:51:27 +0000 (18:51 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 7 Dec 2010 18:51:27 +0000 (18:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121162 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/RegAllocBasic.cpp

index 545a6bd5bc7e3ded4d8951db1842dcd44e3cd473..96c8076c2d66dc6283431df2b08179cdfa5beead 100644 (file)
@@ -443,15 +443,8 @@ unsigned RABasic::selectOrSplit(LiveInterval &VirtReg,
 
     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;
   }