mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-19 04:28:20 +00:00
Several tail call tests apparently rely upon this being "adjusts stack" instead
of "has calls". That's probably wrong, but it needs further investigation. Revert to the original behavior until this is settled. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103824 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -898,7 +898,7 @@ void X86RegisterInfo::emitPrologue(MachineFunction &MF) const {
|
|||||||
if (Is64Bit && !Fn->hasFnAttr(Attribute::NoRedZone) &&
|
if (Is64Bit && !Fn->hasFnAttr(Attribute::NoRedZone) &&
|
||||||
!needsStackRealignment(MF) &&
|
!needsStackRealignment(MF) &&
|
||||||
!MFI->hasVarSizedObjects() && // No dynamic alloca.
|
!MFI->hasVarSizedObjects() && // No dynamic alloca.
|
||||||
!MFI->hasCalls() && // No calls.
|
!MFI->adjustsStack() && // No calls.
|
||||||
!Subtarget->isTargetWin64()) { // Win64 has no Red Zone
|
!Subtarget->isTargetWin64()) { // Win64 has no Red Zone
|
||||||
uint64_t MinSize = X86FI->getCalleeSavedFrameSize();
|
uint64_t MinSize = X86FI->getCalleeSavedFrameSize();
|
||||||
if (HasFP) MinSize += SlotSize;
|
if (HasFP) MinSize += SlotSize;
|
||||||
|
Reference in New Issue
Block a user