This should happen if there are no calls, not if it just doesn't adjust the
authorBill Wendling <isanbard@gmail.com>
Fri, 14 May 2010 21:38:44 +0000 (21:38 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 14 May 2010 21:38:44 +0000 (21:38 +0000)
stack.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103813 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86RegisterInfo.cpp

index 2db3c703cc97e3f3be1dd3d26ad14d867fc6f304..f24138ae1defc95a1a19dc24bbeb641af5b0b875 100644 (file)
@@ -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() &&                      // No calls.
+      !MFI->hasCalls() &&                          // No calls.
       !Subtarget->isTargetWin64()) {               // Win64 has no Red Zone
     uint64_t MinSize = X86FI->getCalleeSavedFrameSize();
     if (HasFP) MinSize += SlotSize;