mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-01 00:25:01 +00:00
Revert r103804. The comment is correct.
llvm-svn: 103808
This commit is contained in:
parent
869f73322d
commit
adcbee9547
@ -277,7 +277,7 @@ namespace llvm {
|
||||
return true;
|
||||
if (NoFramePointerElimNonLeaf) {
|
||||
const MachineFrameInfo *MFI = MF.getFrameInfo();
|
||||
return MFI->adjustsStack();
|
||||
return MFI->hasCalls();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
@ -898,7 +898,7 @@ void X86RegisterInfo::emitPrologue(MachineFunction &MF) const {
|
||||
if (Is64Bit && !Fn->hasFnAttr(Attribute::NoRedZone) &&
|
||||
!needsStackRealignment(MF) &&
|
||||
!MFI->hasVarSizedObjects() && // No dynamic alloca.
|
||||
!MFI->adjustsStack() && // Doesn't adjust stack.
|
||||
!MFI->adjustsStack() && // No calls.
|
||||
!Subtarget->isTargetWin64()) { // Win64 has no Red Zone
|
||||
uint64_t MinSize = X86FI->getCalleeSavedFrameSize();
|
||||
if (HasFP) MinSize += SlotSize;
|
||||
|
Loading…
Reference in New Issue
Block a user