mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
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
ee1a3c5643
commit
f103029d0d
@ -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
Block a user