forked from OSchip/llvm-project
parent
714aec021d
commit
7df3f01703
llvm/lib/CodeGen
|
@ -331,7 +331,7 @@ void LiveRangeEdit::eliminateDeadDefs(SmallVectorImpl<MachineInstr*> &Dead,
|
||||||
TheDelegate->LRE_WillShrinkVirtReg(LI->reg);
|
TheDelegate->LRE_WillShrinkVirtReg(LI->reg);
|
||||||
if (!LIS.shrinkToUses(LI, &Dead))
|
if (!LIS.shrinkToUses(LI, &Dead))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Don't create new intervals for a register being spilled.
|
// Don't create new intervals for a register being spilled.
|
||||||
// The new intervals would have to be spilled anyway so its not worth it.
|
// The new intervals would have to be spilled anyway so its not worth it.
|
||||||
// Also they currently aren't spilled so creating them and not spilling
|
// Also they currently aren't spilled so creating them and not spilling
|
||||||
|
@ -343,7 +343,7 @@ void LiveRangeEdit::eliminateDeadDefs(SmallVectorImpl<MachineInstr*> &Dead,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (BeingSpilled) continue;
|
if (BeingSpilled) continue;
|
||||||
|
|
||||||
// LI may have been separated, create new intervals.
|
// LI may have been separated, create new intervals.
|
||||||
|
|
Loading…
Reference in New Issue