forked from OSchip/llvm-project
LiveRangeEdit: Inline markDeadRemat() into only user; NFC
This function was only called from a single place in which we didn't even need the `if (DeadRemats)` check. llvm-svn: 322230
This commit is contained in:
parent
5c84e4b001
commit
f23ccf06c6
|
@ -233,12 +233,6 @@ public:
|
|||
return Rematted.count(ParentVNI);
|
||||
}
|
||||
|
||||
void markDeadRemat(MachineInstr *inst) {
|
||||
// DeadRemats is an optional field.
|
||||
if (DeadRemats)
|
||||
DeadRemats->insert(inst);
|
||||
}
|
||||
|
||||
/// eraseVirtReg - Notify the delegate that Reg is no longer in use, and try
|
||||
/// to erase it from LIS.
|
||||
void eraseVirtReg(unsigned Reg);
|
||||
|
|
|
@ -364,7 +364,7 @@ void LiveRangeEdit::eliminateDeadDef(MachineInstr *MI, ToShrinkSet &ToShrink,
|
|||
VNInfo *VNI = NewLI.getNextValue(Idx, LIS.getVNInfoAllocator());
|
||||
NewLI.addSegment(LiveInterval::Segment(Idx, Idx.getDeadSlot(), VNI));
|
||||
pop_back();
|
||||
markDeadRemat(MI);
|
||||
DeadRemats->insert(MI);
|
||||
const TargetRegisterInfo &TRI = *MRI.getTargetRegisterInfo();
|
||||
MI->substituteRegister(Dest, NewLI.reg, 0, TRI);
|
||||
MI->getOperand(0).setIsDead(true);
|
||||
|
|
Loading…
Reference in New Issue