mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
Revert r103804. The comment is correct.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103808 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
01384ef159
commit
0fc546b053
@ -277,7 +277,7 @@ namespace llvm {
|
|||||||
return true;
|
return true;
|
||||||
if (NoFramePointerElimNonLeaf) {
|
if (NoFramePointerElimNonLeaf) {
|
||||||
const MachineFrameInfo *MFI = MF.getFrameInfo();
|
const MachineFrameInfo *MFI = MF.getFrameInfo();
|
||||||
return MFI->adjustsStack();
|
return MFI->hasCalls();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -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->adjustsStack() && // Doesn't adjust stack.
|
!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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user