[llvm-commits] [llvm] r103232 - /llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
Dan Gohman
gohman at apple.com
Thu May 6 18:28:10 PDT 2010
Author: djg
Date: Thu May 6 20:28:10 2010
New Revision: 103232
URL: http://llvm.org/viewvc/llvm-project?rev=103232&view=rev
Log:
When rematerializing, use the debug location of the original
instruction, rather than a location near where the new instruction
is being inserted.
Modified:
llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
Modified: llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrInfo.cpp?rev=103232&r1=103231&r2=103232&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86InstrInfo.cpp Thu May 6 20:28:10 2010
@@ -1065,7 +1065,7 @@
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);
More information about the llvm-commits
mailing list