Add text explaining an assertion.

llvm-svn: 122617
This commit is contained in:
Cameron Zwarich 2010-12-29 03:52:51 +00:00
parent 2ae93b2c9c
commit 458fd305d4
1 changed files with 3 additions and 1 deletions

View File

@ -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) {