From: Jakob Stoklund Olesen Date: Tue, 7 Dec 2010 18:51:27 +0000 (+0000) Subject: Simplify assertion. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=2b38c51f0ece16ef00068da56bee4623fb9ae485;p=oota-llvm.git Simplify assertion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121162 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/RegAllocBasic.cpp b/lib/CodeGen/RegAllocBasic.cpp index 545a6bd5bc7..96c8076c2d6 100644 --- a/lib/CodeGen/RegAllocBasic.cpp +++ b/lib/CodeGen/RegAllocBasic.cpp @@ -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; }