diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-04-13 18:28:37 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-04-13 18:28:37 +0000 |
commit | ef8e48aae06d464e2f7b6c7d2b38e1eb2eca704b (patch) | |
tree | c472bf2417d07bda651c2cb3aec67f570730ea07 /lib | |
parent | 3d11e8a6d383ad625e0878e1fe21891c3b448ee0 (diff) | |
download | external_llvm-ef8e48aae06d464e2f7b6c7d2b38e1eb2eca704b.zip external_llvm-ef8e48aae06d464e2f7b6c7d2b38e1eb2eca704b.tar.gz external_llvm-ef8e48aae06d464e2f7b6c7d2b38e1eb2eca704b.tar.bz2 |
I don't think we have to have 4 extra allocated (but unused) bytes on the stack.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12905 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/Sparc/SparcRegisterInfo.cpp | 2 | ||||
-rw-r--r-- | lib/Target/Sparc/SparcTargetMachine.cpp | 2 | ||||
-rw-r--r-- | lib/Target/SparcV8/SparcV8RegisterInfo.cpp | 2 | ||||
-rw-r--r-- | lib/Target/SparcV8/SparcV8TargetMachine.cpp | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/Sparc/SparcRegisterInfo.cpp b/lib/Target/Sparc/SparcRegisterInfo.cpp index c377612..114e795 100644 --- a/lib/Target/Sparc/SparcRegisterInfo.cpp +++ b/lib/Target/Sparc/SparcRegisterInfo.cpp @@ -99,7 +99,7 @@ void SparcV8RegisterInfo::emitPrologue(MachineFunction &MF) const { MachineFrameInfo *MFI = MF.getFrameInfo(); // Get the number of bytes to allocate from the FrameInfo - int NumBytes = (int) MFI->getStackSize() + 4; + int NumBytes = (int) MFI->getStackSize(); // Emit the correct save instruction based on the number of bytes in the frame. // Minimum stack frame size according to V8 ABI is: diff --git a/lib/Target/Sparc/SparcTargetMachine.cpp b/lib/Target/Sparc/SparcTargetMachine.cpp index 9cd97ee..2aaa5d8 100644 --- a/lib/Target/Sparc/SparcTargetMachine.cpp +++ b/lib/Target/Sparc/SparcTargetMachine.cpp @@ -32,7 +32,7 @@ TargetMachine *llvm::allocateSparcV8TargetMachine(const Module &M, SparcV8TargetMachine::SparcV8TargetMachine(const Module &M, IntrinsicLowering *IL) : TargetMachine("SparcV8", IL, true, 4, 4, 4, 4, 4), - FrameInfo(TargetFrameInfo::StackGrowsDown, 8, 4), JITInfo(*this) { + FrameInfo(TargetFrameInfo::StackGrowsDown, 8, 0), JITInfo(*this) { } /// addPassesToEmitAssembly - Add passes to the specified pass manager diff --git a/lib/Target/SparcV8/SparcV8RegisterInfo.cpp b/lib/Target/SparcV8/SparcV8RegisterInfo.cpp index c377612..114e795 100644 --- a/lib/Target/SparcV8/SparcV8RegisterInfo.cpp +++ b/lib/Target/SparcV8/SparcV8RegisterInfo.cpp @@ -99,7 +99,7 @@ void SparcV8RegisterInfo::emitPrologue(MachineFunction &MF) const { MachineFrameInfo *MFI = MF.getFrameInfo(); // Get the number of bytes to allocate from the FrameInfo - int NumBytes = (int) MFI->getStackSize() + 4; + int NumBytes = (int) MFI->getStackSize(); // Emit the correct save instruction based on the number of bytes in the frame. // Minimum stack frame size according to V8 ABI is: diff --git a/lib/Target/SparcV8/SparcV8TargetMachine.cpp b/lib/Target/SparcV8/SparcV8TargetMachine.cpp index 9cd97ee..2aaa5d8 100644 --- a/lib/Target/SparcV8/SparcV8TargetMachine.cpp +++ b/lib/Target/SparcV8/SparcV8TargetMachine.cpp @@ -32,7 +32,7 @@ TargetMachine *llvm::allocateSparcV8TargetMachine(const Module &M, SparcV8TargetMachine::SparcV8TargetMachine(const Module &M, IntrinsicLowering *IL) : TargetMachine("SparcV8", IL, true, 4, 4, 4, 4, 4), - FrameInfo(TargetFrameInfo::StackGrowsDown, 8, 4), JITInfo(*this) { + FrameInfo(TargetFrameInfo::StackGrowsDown, 8, 0), JITInfo(*this) { } /// addPassesToEmitAssembly - Add passes to the specified pass manager |