[llvm-commits] [llvm] r103808 - in /llvm/trunk/lib/Target: TargetMachine.cpp X86/X86RegisterInfo.cpp
Bill Wendling
isanbard at gmail.com
Fri May 14 14:28:25 PDT 2010
Author: void
Date: Fri May 14 16:28:24 2010
New Revision: 103808
URL: http://llvm.org/viewvc/llvm-project?rev=103808&view=rev
Log:
Revert r103804. The comment is correct.
Modified:
llvm/trunk/lib/Target/TargetMachine.cpp
llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp
Modified: llvm/trunk/lib/Target/TargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetMachine.cpp?rev=103808&r1=103807&r2=103808&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/TargetMachine.cpp Fri May 14 16:28:24 2010
@@ -277,7 +277,7 @@
return true;
if (NoFramePointerElimNonLeaf) {
const MachineFrameInfo *MFI = MF.getFrameInfo();
- return MFI->adjustsStack();
+ return MFI->hasCalls();
}
return false;
}
Modified: llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp?rev=103808&r1=103807&r2=103808&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp Fri May 14 16:28:24 2010
@@ -898,7 +898,7 @@
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;
More information about the llvm-commits
mailing list