diff options
author | Cameron Zwarich <zwarich@apple.com> | 2010-12-29 03:52:51 +0000 |
---|---|---|
committer | Cameron Zwarich <zwarich@apple.com> | 2010-12-29 03:52:51 +0000 |
commit | 480b80a74648c9ea93b9a8986f9ca6a9de536abc (patch) | |
tree | 7badfb8cf11c9d2d0ab62ca2ed4ea2e1ee44f6f8 /lib/CodeGen/StrongPHIElimination.cpp | |
parent | 9c54c14cad22a178553d4e9c73abe10fa6038d70 (diff) |
Add text explaining an assertion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122617 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/StrongPHIElimination.cpp')
-rw-r--r-- | lib/CodeGen/StrongPHIElimination.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/StrongPHIElimination.cpp b/lib/CodeGen/StrongPHIElimination.cpp index 5713e6aed2..4749d8eca8 100644 --- a/lib/CodeGen/StrongPHIElimination.cpp +++ b/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) { |