Skip to content

Commit

Permalink
[NFC][IntrRefLDV] Remove dead code from transferSpillOrRestoreInst()
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D90852
  • Loading branch information
Djordje Todorovic committed Nov 13, 2020
1 parent 5a327f3 commit 22fd38d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
Expand Up @@ -1968,13 +1968,6 @@ bool InstrRefBasedLDV::transferSpillOrRestoreInst(MachineInstr &MI) {
if (TTracker)
TTracker->transferMlocs(MTracker->getRegMLoc(Reg), SpillLocIdx,
MI.getIterator());

// VarLocBasedImpl would, at this point, stop tracking the source
// register of the store.
if (EmulateOldLDV) {
for (MCRegAliasIterator RAI(Reg, TRI, true); RAI.isValid(); ++RAI)
MTracker->defReg(*RAI, CurBB, CurInst);
}
} else {
if (!(Loc = isRestoreInstruction(MI, MF, Reg)))
return false;
Expand Down

0 comments on commit 22fd38d

Please sign in to comment.