summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-05-14 21:38:44 +0000
committerBill Wendling <isanbard@gmail.com>2010-05-14 21:38:44 +0000
commite9ac7ad68c3cf1d7d5ef6d3e1e4fb9809da8c419 (patch)
treec8c48fd24ab829633cfff6c34794ec37efc0283d /llvm/lib
parent862fac958b6442307f4990fa33e315656a23ddc3 (diff)
downloadbcm5719-llvm-e9ac7ad68c3cf1d7d5ef6d3e1e4fb9809da8c419.tar.gz
bcm5719-llvm-e9ac7ad68c3cf1d7d5ef6d3e1e4fb9809da8c419.zip
This should happen if there are no calls, not if it just doesn't adjust the
stack. llvm-svn: 103813
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86RegisterInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86RegisterInfo.cpp b/llvm/lib/Target/X86/X86RegisterInfo.cpp
index 2db3c703cc9..f24138ae1de 100644
--- a/llvm/lib/Target/X86/X86RegisterInfo.cpp
+++ b/llvm/lib/Target/X86/X86RegisterInfo.cpp
@@ -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;
OpenPOWER on IntegriCloud