aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
diff options
context:
space:
mode:
authorDjordje Todorovic <djtodoro@cisco.com>2020-11-05 07:17:40 -0800
committerDjordje Todorovic <djtodoro@cisco.com>2020-11-13 07:53:54 -0800
commit22fd38d5080ed41bf352efcd852666436c678b90 (patch)
treebbc5b889cbfd914777d9ef37bd8b7f086bdbb66d /llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
parent5a327f333763e164817a4e8318d9ab829a8f9246 (diff)
downloadllvm-22fd38d5080ed41bf352efcd852666436c678b90.zip
llvm-22fd38d5080ed41bf352efcd852666436c678b90.tar.gz
llvm-22fd38d5080ed41bf352efcd852666436c678b90.tar.bz2
[NFC][IntrRefLDV] Remove dead code from transferSpillOrRestoreInst()
Differential Revision: https://reviews.llvm.org/D90852
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp7
1 files changed, 0 insertions, 7 deletions
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;