From: Djordje Todorovic Date: Thu, 5 Nov 2020 15:17:40 +0000 (-0800) Subject: [NFC][IntrRefLDV] Remove dead code from transferSpillOrRestoreInst() X-Git-Tag: llvmorg-13-init~6158 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=22fd38d5080ed41bf352efcd852666436c678b90;p=platform%2Fupstream%2Fllvm.git [NFC][IntrRefLDV] Remove dead code from transferSpillOrRestoreInst() Differential Revision: https://reviews.llvm.org/D90852 --- diff --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp index df5670e..69179d0 100644 --- a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp +++ b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp @@ -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;