[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp

Chris Lattner sabre at nondot.org
Wed Nov 15 15:35:45 PST 2006



Changes in directory llvm/lib/Target/PowerPC:

PPCRegisterInfo.cpp updated: 1.84 -> 1.85
---
Log message:

Fix ppc64 epilog bug.


---
Diffs of the changes:  (+1 -1)

 PPCRegisterInfo.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp
diff -u llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp:1.84 llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp:1.85
--- llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp:1.84	Wed Nov 15 14:58:11 2006
+++ llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp	Wed Nov 15 17:35:30 2006
@@ -767,7 +767,7 @@
 
   // Get the number of bytes allocated from the FrameInfo.
   unsigned NumBytes = MFI->getStackSize();
-  unsigned GPRSize = 4; 
+  unsigned GPRSize = Subtarget.isPPC64() ? 8 : 4;
 
   if (NumBytes != 0) {
     // If this function has a frame pointer, load the saved stack pointer from






More information about the llvm-commits mailing list