aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAllocBasic.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-12-07 18:51:27 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-12-07 18:51:27 +0000
commit2b38c51f0ece16ef00068da56bee4623fb9ae485 (patch)
tree2848f285e573ca3a507dc66438b7ca74f7d51da7 /lib/CodeGen/RegAllocBasic.cpp
parent1ff657312ec3472e546d76e1145bf06531e07ce9 (diff)
Simplify assertion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121162 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocBasic.cpp')
-rw-r--r--lib/CodeGen/RegAllocBasic.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/CodeGen/RegAllocBasic.cpp b/lib/CodeGen/RegAllocBasic.cpp
index 545a6bd5bc..96c8076c2d 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;
}