mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-11 13:46:13 +00:00
Simplify assertion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121162 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1ff657312e
commit
2b38c51f0e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user