mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
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
This commit is contained in:
parent
3d11e8a6d3
commit
ef8e48aae0
@ -99,7 +99,7 @@ void SparcV8RegisterInfo::emitPrologue(MachineFunction &MF) const {
|
|||||||
MachineFrameInfo *MFI = MF.getFrameInfo();
|
MachineFrameInfo *MFI = MF.getFrameInfo();
|
||||||
|
|
||||||
// Get the number of bytes to allocate from the FrameInfo
|
// 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.
|
// Emit the correct save instruction based on the number of bytes in the frame.
|
||||||
// Minimum stack frame size according to V8 ABI is:
|
// Minimum stack frame size according to V8 ABI is:
|
||||||
|
@ -32,7 +32,7 @@ TargetMachine *llvm::allocateSparcV8TargetMachine(const Module &M,
|
|||||||
SparcV8TargetMachine::SparcV8TargetMachine(const Module &M,
|
SparcV8TargetMachine::SparcV8TargetMachine(const Module &M,
|
||||||
IntrinsicLowering *IL)
|
IntrinsicLowering *IL)
|
||||||
: TargetMachine("SparcV8", IL, true, 4, 4, 4, 4, 4),
|
: 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
|
/// addPassesToEmitAssembly - Add passes to the specified pass manager
|
||||||
|
@ -99,7 +99,7 @@ void SparcV8RegisterInfo::emitPrologue(MachineFunction &MF) const {
|
|||||||
MachineFrameInfo *MFI = MF.getFrameInfo();
|
MachineFrameInfo *MFI = MF.getFrameInfo();
|
||||||
|
|
||||||
// Get the number of bytes to allocate from the FrameInfo
|
// 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.
|
// Emit the correct save instruction based on the number of bytes in the frame.
|
||||||
// Minimum stack frame size according to V8 ABI is:
|
// Minimum stack frame size according to V8 ABI is:
|
||||||
|
@ -32,7 +32,7 @@ TargetMachine *llvm::allocateSparcV8TargetMachine(const Module &M,
|
|||||||
SparcV8TargetMachine::SparcV8TargetMachine(const Module &M,
|
SparcV8TargetMachine::SparcV8TargetMachine(const Module &M,
|
||||||
IntrinsicLowering *IL)
|
IntrinsicLowering *IL)
|
||||||
: TargetMachine("SparcV8", IL, true, 4, 4, 4, 4, 4),
|
: 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
|
/// addPassesToEmitAssembly - Add passes to the specified pass manager
|
||||||
|
Loading…
x
Reference in New Issue
Block a user