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 | 8898906b56e8cd9ef4cbe04e36f8e9467bd59692 (patch) | |
| tree | a360b0044ed2847396555f4ea4c4585c916a45ec /lib/Target/Mips | |
| parent | 1870cf52739c3d73f7feb3ad51b5b6b9315ce35c (diff) | |
| download | external_llvm-8898906b56e8cd9ef4cbe04e36f8e9467bd59692.zip external_llvm-8898906b56e8cd9ef4cbe04e36f8e9467bd59692.tar.gz external_llvm-8898906b56e8cd9ef4cbe04e36f8e9467bd59692.tar.bz2 | |
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101984 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips')
| -rw-r--r-- | lib/Target/Mips/MipsRegisterInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/Mips/MipsRegisterInfo.cpp b/lib/Target/Mips/MipsRegisterInfo.cpp index f43e69b..478da84 100644 --- a/lib/Target/Mips/MipsRegisterInfo.cpp +++ b/lib/Target/Mips/MipsRegisterInfo.cpp @@ -338,7 +338,7 @@ void MipsRegisterInfo::adjustMipsStackFrame(MachineFunction &MF) const bool MipsRegisterInfo:: hasFP(const MachineFunction &MF) const { const MachineFrameInfo *MFI = MF.getFrameInfo(); - return NoFramePointerElim || MFI->hasVarSizedObjects(); + return DisableFramePointerElim(MF) || MFI->hasVarSizedObjects(); } // This function eliminate ADJCALLSTACKDOWN, |
