[PATCH] D129262: [AVR] Remove debug location of spill/reload instructions
LiqinWeng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 7 01:34:49 PDT 2022
Miss_Grape created this revision.
Miss_Grape added reviewers: benshi001, MatzeB, dylanmckay.
Herald added subscribers: Jim, hiraditya.
Herald added a project: All.
Miss_Grape requested review of this revision.
Herald added subscribers: llvm-commits, jacquesguan.
Herald added a project: LLVM.
https://reviews.llvm.org/D129262
Files:
llvm/lib/Target/AVR/AVRInstrInfo.cpp
Index: llvm/lib/Target/AVR/AVRInstrInfo.cpp
===================================================================
--- llvm/lib/Target/AVR/AVRInstrInfo.cpp
+++ llvm/lib/Target/AVR/AVRInstrInfo.cpp
@@ -135,11 +135,6 @@
AFI->setHasSpills(true);
- DebugLoc DL;
- if (MI != MBB.end()) {
- DL = MI->getDebugLoc();
- }
-
const MachineFrameInfo &MFI = MF.getFrameInfo();
MachineMemOperand *MMO = MF.getMachineMemOperand(
@@ -156,7 +151,7 @@
llvm_unreachable("Cannot store this register into a stack slot!");
}
- BuildMI(MBB, MI, DL, get(Opcode))
+ BuildMI(MBB, MI, DebugLoc(), get(Opcode))
.addFrameIndex(FrameIndex)
.addImm(0)
.addReg(SrcReg, getKillRegState(isKill))
@@ -168,11 +163,6 @@
Register DestReg, int FrameIndex,
const TargetRegisterClass *RC,
const TargetRegisterInfo *TRI) const {
- DebugLoc DL;
- if (MI != MBB.end()) {
- DL = MI->getDebugLoc();
- }
-
MachineFunction &MF = *MBB.getParent();
const MachineFrameInfo &MFI = MF.getFrameInfo();
@@ -192,7 +182,7 @@
llvm_unreachable("Cannot load this register from a stack slot!");
}
- BuildMI(MBB, MI, DL, get(Opcode), DestReg)
+ BuildMI(MBB, MI, DebugLoc(), get(Opcode), DestReg)
.addFrameIndex(FrameIndex)
.addImm(0)
.addMemOperand(MMO);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129262.442817.patch
Type: text/x-patch
Size: 1414 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220707/0af31ff3/attachment.bin>
More information about the llvm-commits
mailing list