diff options
author | Dan Gohman <gohman@apple.com> | 2010-05-07 01:28:10 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-05-07 01:28:10 +0000 |
commit | 6bf788cc0143d36e6947bfcd715aa50a6460e2de (patch) | |
tree | ae492f3ac6b66dc770b05aa1f1ae2ed8aad9d219 /lib | |
parent | 2dd15e3f934041757ab836e3f2572766a48c1e23 (diff) | |
download | external_llvm-6bf788cc0143d36e6947bfcd715aa50a6460e2de.zip external_llvm-6bf788cc0143d36e6947bfcd715aa50a6460e2de.tar.gz external_llvm-6bf788cc0143d36e6947bfcd715aa50a6460e2de.tar.bz2 |
When rematerializing, use the debug location of the original
instruction, rather than a location near where the new instruction
is being inserted.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103232 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/X86/X86InstrInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86InstrInfo.cpp b/lib/Target/X86/X86InstrInfo.cpp index a89596e..fb3cbed 100644 --- a/lib/Target/X86/X86InstrInfo.cpp +++ b/lib/Target/X86/X86InstrInfo.cpp @@ -1065,7 +1065,7 @@ void X86InstrInfo::reMaterialize(MachineBasicBlock &MBB, unsigned DestReg, unsigned SubIdx, const MachineInstr *Orig, const TargetRegisterInfo *TRI) const { - DebugLoc DL = MBB.findDebugLoc(I); + DebugLoc DL = Orig->getDebugLoc(); if (SubIdx && TargetRegisterInfo::isPhysicalRegister(DestReg)) { DestReg = TRI->getSubReg(DestReg, SubIdx); |