[llvm-commits] [llvm] r65206 - /llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp
Bill Wendling
isanbard at gmail.com
Fri Feb 20 16:32:08 PST 2009
Author: void
Date: Fri Feb 20 18:32:08 2009
New Revision: 65206
URL: http://llvm.org/viewvc/llvm-project?rev=65206&view=rev
Log:
We need to propagate the debug location information even when dealing with the
prologue/epilogue.
Modified:
llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp
Modified: llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp?rev=65206&r1=65205&r2=65206&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp Fri Feb 20 18:32:08 2009
@@ -542,8 +542,7 @@
(Is64Bit ? X86::ADD64ri8 : X86::ADD32ri8) :
(Is64Bit ? X86::ADD64ri32 : X86::ADD32ri));
uint64_t Chunk = (1LL << 31) - 1;
- // We could pass in a DebugLoc, but this is only called from prolog/epilog.
- DebugLoc DL = DebugLoc::getUnknownLoc();
+ DebugLoc DL = MBBI->getDebugLoc();
while (Offset) {
uint64_t ThisVal = (Offset > Chunk) ? Chunk : Offset;
@@ -889,7 +888,7 @@
X86MachineFunctionInfo *X86FI = MF.getInfo<X86MachineFunctionInfo>();
MachineBasicBlock::iterator MBBI = prior(MBB.end());
unsigned RetOpcode = MBBI->getOpcode();
- DebugLoc DL = DebugLoc::getUnknownLoc();
+ DebugLoc DL = MBBI->getDebugLoc();
switch (RetOpcode) {
case X86::RET:
@@ -924,8 +923,9 @@
// pop EBP.
BuildMI(MBB, MBBI, DL,
TII.get(Is64Bit ? X86::POP64r : X86::POP32r), FramePtr);
- } else
+ } else {
NumBytes = StackSize - CSSize;
+ }
// Skip the callee-saved pop instructions.
MachineBasicBlock::iterator LastCSPop = MBBI;
More information about the llvm-commits
mailing list