Simplify assertion.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121162 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jakob Stoklund Olesen 2010-12-07 18:51:27 +00:00
parent 1ff657312e
commit 2b38c51f0e

View 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;
}