diff options
author | Chris Lattner <sabre@nondot.org> | 2006-01-11 23:16:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-01-11 23:16:29 +0000 |
commit | ba625726a1fc3b18b6a5386978d33f1943f5df84 (patch) | |
tree | 5e89176962bc8dbd05ad31ce9497cdede20b1f0c | |
parent | c6d48d36a349f593aab2194c141a1e24da1aec3e (diff) | |
download | external_llvm-ba625726a1fc3b18b6a5386978d33f1943f5df84.zip external_llvm-ba625726a1fc3b18b6a5386978d33f1943f5df84.tar.gz external_llvm-ba625726a1fc3b18b6a5386978d33f1943f5df84.tar.bz2 |
Fix an off-by-one error that Nate's eagle eyes caught
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25231 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/PowerPC/PPCRegisterInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCRegisterInfo.cpp b/lib/Target/PowerPC/PPCRegisterInfo.cpp index 9801b4c..896c71b 100644 --- a/lib/Target/PowerPC/PPCRegisterInfo.cpp +++ b/lib/Target/PowerPC/PPCRegisterInfo.cpp @@ -380,7 +380,7 @@ void PPCRegisterInfo::emitEpilogue(MachineFunction &MF, // 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 { |