[llvm] 22fd38d - [NFC][IntrRefLDV] Remove dead code from transferSpillOrRestoreInst()
Djordje Todorovic via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 13 07:54:18 PST 2020
Author: Djordje Todorovic
Date: 2020-11-13T07:53:54-08:00
New Revision: 22fd38d5080ed41bf352efcd852666436c678b90
URL: https://github.com/llvm/llvm-project/commit/22fd38d5080ed41bf352efcd852666436c678b90
DIFF: https://github.com/llvm/llvm-project/commit/22fd38d5080ed41bf352efcd852666436c678b90.diff
LOG: [NFC][IntrRefLDV] Remove dead code from transferSpillOrRestoreInst()
Differential Revision: https://reviews.llvm.org/D90852
Added:
Modified:
llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
index df5670e9901e..69179d0882f5 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;
More information about the llvm-commits
mailing list