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 | 90c600d6d2cc5f06eba8a7f75e4742e86de9982f (patch) | |
| tree | 45a0d28649c840d9ecf57126902a0f0acc8a4f71 /llvm | |
| parent | 66d2f924b4e9db01ed6afad4fd4ed2d8a7a9c31a (diff) | |
| download | bcm5719-llvm-90c600d6d2cc5f06eba8a7f75e4742e86de9982f.tar.gz bcm5719-llvm-90c600d6d2cc5f06eba8a7f75e4742e86de9982f.zip | |
When rematerializing, use the debug location of the original
instruction, rather than a location near where the new instruction
is being inserted.
llvm-svn: 103232
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Target/X86/X86InstrInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86InstrInfo.cpp b/llvm/lib/Target/X86/X86InstrInfo.cpp index a89596efbcd..fb3cbed3367 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.cpp +++ b/llvm/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); |

