diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-04-21 03:18:23 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-04-21 03:18:23 +0000 |
commit | 4158a0ff6b1c6d48fbd6d3720e5c0cef5223b4b6 (patch) | |
tree | 106fb3e3c3b96aa2600ddb57a384fb2765ef60c1 /llvm/lib/Target/X86/X86RegisterInfo.cpp | |
parent | f29231ece0721024e8e6f04e66a2fe27c5c6d015 (diff) | |
download | bcm5719-llvm-4158a0ff6b1c6d48fbd6d3720e5c0cef5223b4b6.tar.gz bcm5719-llvm-4158a0ff6b1c6d48fbd6d3720e5c0cef5223b4b6.zip |
Implement -disable-non-leaf-fp-elim which disable frame pointer elimination
optimization for non-leaf functions. This will be hooked up to gcc's
-momit-leaf-frame-pointer option. rdar://7886181
llvm-svn: 101984
Diffstat (limited to 'llvm/lib/Target/X86/X86RegisterInfo.cpp')
-rw-r--r-- | llvm/lib/Target/X86/X86RegisterInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86RegisterInfo.cpp b/llvm/lib/Target/X86/X86RegisterInfo.cpp index abb9aca78e9..6bf9be5b276 100644 --- a/llvm/lib/Target/X86/X86RegisterInfo.cpp +++ b/llvm/lib/Target/X86/X86RegisterInfo.cpp @@ -439,7 +439,7 @@ bool X86RegisterInfo::hasFP(const MachineFunction &MF) const { const MachineFrameInfo *MFI = MF.getFrameInfo(); const MachineModuleInfo &MMI = MF.getMMI(); - return (NoFramePointerElim || + return (DisableFramePointerElim(MF) || needsStackRealignment(MF) || MFI->hasVarSizedObjects() || MFI->isFrameAddressTaken() || |