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

Chris Lattner lattner at cs.uiuc.edu
Wed Jan 11 15:16:42 PST 2006



Changes in directory llvm/lib/Target/PowerPC:

PPCRegisterInfo.cpp updated: 1.41 -> 1.42
---
Log message:

Fix an off-by-one error that Nate's eagle eyes caught


---
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.41 llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp:1.42
--- llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp:1.41	Wed Jan 11 17:07:57 2006
+++ llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp	Wed Jan 11 17:16:29 2006
@@ -380,7 +380,7 @@
     
     // The loaded (or persistent) stack pointer value is offseted by the 'stwu'
     // on entry to the function.  Add this offset back now.
-    if (NumBytes <= 32768) {
+    if (NumBytes < 32768) {
       BuildMI(MBB, MBBI, PPC::ADDI, 2, PPC::R1)
           .addReg(PPC::R1).addSImm(NumBytes);
     } else {






More information about the llvm-commits mailing list