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/MSP430 | |
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/MSP430')
-rw-r--r-- | lib/Target/MSP430/MSP430RegisterInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/MSP430/MSP430RegisterInfo.cpp b/lib/Target/MSP430/MSP430RegisterInfo.cpp index d91783a..0cae267 100644 --- a/lib/Target/MSP430/MSP430RegisterInfo.cpp +++ b/lib/Target/MSP430/MSP430RegisterInfo.cpp @@ -138,7 +138,7 @@ MSP430RegisterInfo::getPointerRegClass(unsigned Kind) const { bool MSP430RegisterInfo::hasFP(const MachineFunction &MF) const { const MachineFrameInfo *MFI = MF.getFrameInfo(); - return (NoFramePointerElim || + return (DisableFramePointerElim(MF) || MF.getFrameInfo()->hasVarSizedObjects() || MFI->isFrameAddressTaken()); } |