summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/StrongPHIElimination.cpp
diff options
context:
space:
mode:
authorCameron Zwarich <zwarich@apple.com>2010-12-29 03:52:51 +0000
committerCameron Zwarich <zwarich@apple.com>2010-12-29 03:52:51 +0000
commit458fd305d48d90487fdb9ae196f905e839584f40 (patch)
treece7b5a405c142f71a3d5f11daae082d47c21b03e /llvm/lib/CodeGen/StrongPHIElimination.cpp
parent2ae93b2c9cbcc04405046121e2af93ee76943433 (diff)
downloadbcm5719-llvm-458fd305d48d90487fdb9ae196f905e839584f40.tar.gz
bcm5719-llvm-458fd305d48d90487fdb9ae196f905e839584f40.zip
Add text explaining an assertion.
llvm-svn: 122617
Diffstat (limited to 'llvm/lib/CodeGen/StrongPHIElimination.cpp')
-rw-r--r--llvm/lib/CodeGen/StrongPHIElimination.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/StrongPHIElimination.cpp b/llvm/lib/CodeGen/StrongPHIElimination.cpp
index 5713e6aed29..4749d8eca88 100644
--- a/llvm/lib/CodeGen/StrongPHIElimination.cpp
+++ b/llvm/lib/CodeGen/StrongPHIElimination.cpp
@@ -283,7 +283,9 @@ bool StrongPHIElimination::runOnMachineFunction(MachineFunction& MF) {
LiveInterval& DestLI = LI->getInterval(DestReg);
LiveInterval& NewLI = LI->getInterval(NewReg);
- assert(DestLI.ranges.size() == 1);
+ assert(DestLI.ranges.size() == 1
+ && "PHI destination copy's live interval should be a single live "
+ "range from the beginning of the BB to the copy instruction.");
LiveRange* DestLR = DestLI.begin();
VNInfo* NewVNI = NewLI.getVNInfoAt(DestLR->start);
if (!NewVNI) {
OpenPOWER on IntegriCloud