mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-30 23:20:54 +00:00
[LiveRangeEdit] Add assert string and descriptive comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289456 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e0db50fdac
commit
471f160d5a
@ -273,7 +273,9 @@ void LiveRangeEdit::eliminateDeadDef(MachineInstr *MI, ToShrinkSet &ToShrink,
|
||||
bool isOrigDef = false;
|
||||
unsigned Dest;
|
||||
if (VRM && MI->getOperand(0).isReg() && MI->getOperand(0).isDef()) {
|
||||
assert(MI->getDesc().getNumDefs() == 1);
|
||||
// It is assumed that callers of eliminateDeadDefs() will never pass in dead
|
||||
// instructions with multiple virtual register defs.
|
||||
assert(MI->getDesc().getNumDefs() == 1 && "Unexpected instruction with multiple defs.");
|
||||
Dest = MI->getOperand(0).getReg();
|
||||
unsigned Original = VRM->getOriginal(Dest);
|
||||
LiveInterval &OrigLI = LIS.getInterval(Original);
|
||||
|
Loading…
Reference in New Issue
Block a user