aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/X86/X86CallFrameOptimization.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2021-05-13 18:23:23 +0100
committerSimon Pilgrim <llvm-dev@redking.me.uk>2021-05-14 11:14:18 +0100
commit5ed56a821c0622869739a3ae752eea97a1ee1f48 (patch)
tree7bfdc2a6b436fe863262c958451049733911cb5d /llvm/lib/Target/X86/X86CallFrameOptimization.cpp
parente51ef7f0706ada40d33819d1b3bdca2351e4fb4e (diff)
downloadllvm-5ed56a821c0622869739a3ae752eea97a1ee1f48.zip
llvm-5ed56a821c0622869739a3ae752eea97a1ee1f48.tar.gz
llvm-5ed56a821c0622869739a3ae752eea97a1ee1f48.tar.bz2
[X86] Try to pass DebugLoc by const-ref to avoid costly TrackingMDNodeRef copies. NFCI.
Diffstat (limited to 'llvm/lib/Target/X86/X86CallFrameOptimization.cpp')
-rw-r--r--llvm/lib/Target/X86/X86CallFrameOptimization.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86CallFrameOptimization.cpp b/llvm/lib/Target/X86/X86CallFrameOptimization.cpp
index fae4e68..1fa559d 100644
--- a/llvm/lib/Target/X86/X86CallFrameOptimization.cpp
+++ b/llvm/lib/Target/X86/X86CallFrameOptimization.cpp
@@ -499,7 +499,7 @@ void X86CallFrameOptimization::adjustCallSequence(MachineFunction &MF,
MachineBasicBlock &MBB = *(FrameSetup->getParent());
TII->setFrameAdjustment(*FrameSetup, Context.ExpectedDist);
- DebugLoc DL = FrameSetup->getDebugLoc();
+ const DebugLoc &DL = FrameSetup->getDebugLoc();
bool Is64Bit = STI->is64Bit();
// Now, iterate through the vector in reverse order, and replace the store to
// stack with pushes. MOVmi/MOVmr doesn't have any defs, so no need to