mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-26 21:47:07 +00:00
Add text explaining an assertion.
llvm-svn: 122617
This commit is contained in:
parent
ed7b5659d4
commit
6fc15ba38b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user