mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-13 08:56:04 +00:00
Add text explaining an assertion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122617 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9c54c14cad
commit
480b80a746
@ -283,7 +283,9 @@ bool StrongPHIElimination::runOnMachineFunction(MachineFunction& MF) {
|
|||||||
LiveInterval& DestLI = LI->getInterval(DestReg);
|
LiveInterval& DestLI = LI->getInterval(DestReg);
|
||||||
LiveInterval& NewLI = LI->getInterval(NewReg);
|
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();
|
LiveRange* DestLR = DestLI.begin();
|
||||||
VNInfo* NewVNI = NewLI.getVNInfoAt(DestLR->start);
|
VNInfo* NewVNI = NewLI.getVNInfoAt(DestLR->start);
|
||||||
if (!NewVNI) {
|
if (!NewVNI) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user