summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/MBlaze/MBlazeRegisterInfo.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-04-21 03:18:23 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-04-21 03:18:23 +0000
commit4158a0ff6b1c6d48fbd6d3720e5c0cef5223b4b6 (patch)
tree106fb3e3c3b96aa2600ddb57a384fb2765ef60c1 /llvm/lib/Target/MBlaze/MBlazeRegisterInfo.cpp
parentf29231ece0721024e8e6f04e66a2fe27c5c6d015 (diff)
downloadbcm5719-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/MBlaze/MBlazeRegisterInfo.cpp')
-rw-r--r--llvm/lib/Target/MBlaze/MBlazeRegisterInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/MBlaze/MBlazeRegisterInfo.cpp b/llvm/lib/Target/MBlaze/MBlazeRegisterInfo.cpp
index a12310a2bd3..e15176eb06b 100644
--- a/llvm/lib/Target/MBlaze/MBlazeRegisterInfo.cpp
+++ b/llvm/lib/Target/MBlaze/MBlazeRegisterInfo.cpp
@@ -243,7 +243,7 @@ void MBlazeRegisterInfo::adjustMBlazeStackFrame(MachineFunction &MF) const {
// if frame pointer elimination is disabled.
bool MBlazeRegisterInfo::hasFP(const MachineFunction &MF) const {
const MachineFrameInfo *MFI = MF.getFrameInfo();
- return NoFramePointerElim || MFI->hasVarSizedObjects();
+ return DisableFramePointerElim(MF) || MFI->hasVarSizedObjects();
}
// This function eliminate ADJCALLSTACKDOWN,
OpenPOWER on IntegriCloud