[llvm] 7e6b150 - [AArch64] Pass DebugLoc by reference to AArch64InstrInfo::copyGPRRegTuple. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 25 22:22:42 PDT 2024


Author: Craig Topper
Date: 2024-08-25T22:20:58-07:00
New Revision: 7e6b1504c7cf6976ac8e9012c4513ffa258bd8eb

URL: https://github.com/llvm/llvm-project/commit/7e6b1504c7cf6976ac8e9012c4513ffa258bd8eb
DIFF: https://github.com/llvm/llvm-project/commit/7e6b1504c7cf6976ac8e9012c4513ffa258bd8eb.diff

LOG: [AArch64] Pass DebugLoc by reference to AArch64InstrInfo::copyGPRRegTuple. NFC

Added: 
    

Modified: 
    llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
    llvm/lib/Target/AArch64/AArch64InstrInfo.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
index f37ada1bf5c5f2..2d41aff605a54e 100644
--- a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
+++ b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
@@ -4825,7 +4825,7 @@ void AArch64InstrInfo::copyPhysRegTuple(MachineBasicBlock &MBB,
 
 void AArch64InstrInfo::copyGPRRegTuple(MachineBasicBlock &MBB,
                                        MachineBasicBlock::iterator I,
-                                       DebugLoc DL, MCRegister DestReg,
+                                       const DebugLoc &DL, MCRegister DestReg,
                                        MCRegister SrcReg, bool KillSrc,
                                        unsigned Opcode, unsigned ZeroReg,
                                        llvm::ArrayRef<unsigned> Indices) const {

diff  --git a/llvm/lib/Target/AArch64/AArch64InstrInfo.h b/llvm/lib/Target/AArch64/AArch64InstrInfo.h
index 59f729a856a8e9..1580cdc0a2ba24 100644
--- a/llvm/lib/Target/AArch64/AArch64InstrInfo.h
+++ b/llvm/lib/Target/AArch64/AArch64InstrInfo.h
@@ -339,7 +339,7 @@ class AArch64InstrInfo final : public AArch64GenInstrInfo {
                         MCRegister SrcReg, bool KillSrc, unsigned Opcode,
                         llvm::ArrayRef<unsigned> Indices) const;
   void copyGPRRegTuple(MachineBasicBlock &MBB, MachineBasicBlock::iterator I,
-                       DebugLoc DL, MCRegister DestReg, MCRegister SrcReg,
+                       const DebugLoc &DL, MCRegister DestReg, MCRegister SrcReg,
                        bool KillSrc, unsigned Opcode, unsigned ZeroReg,
                        llvm::ArrayRef<unsigned> Indices) const;
   void copyPhysReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator I,


        


More information about the llvm-commits mailing list