summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitfb207c1cb902d129ac06113d1e525ca56282f1eb (patch)
treee067bafcedf6e7d613abd646bad23ccbfbbe9fd7 /llvm/lib/CodeGen/RegAllocBasic.cpp
parent355ac5f622d7543c7da581fa5ffdd5b2543aea22 (diff)
downloadbcm5719-llvm-fb207c1cb902d129ac06113d1e525ca56282f1eb.tar.gz
bcm5719-llvm-fb207c1cb902d129ac06113d1e525ca56282f1eb.zip
Simplify assertion.
llvm-svn: 121162
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocBasic.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocBasic.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/RegAllocBasic.cpp b/llvm/lib/CodeGen/RegAllocBasic.cpp
index 545a6bd5bc7..96c8076c2d6 100644
--- a/llvm/lib/CodeGen/RegAllocBasic.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud