diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-09-26 19:48:35 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-09-26 19:48:35 +0000 |
commit | e96a7f565ddcd8855d6cbcecf3f65ea08a65e558 (patch) | |
tree | c68c32e0d9f0dadb805a6e07fe7e2544b57de222 /lib/Target/CellSPU/SPURegisterInfo.cpp | |
parent | 71287953e60d3437b51a69fd3f016b03f5011c52 (diff) | |
download | external_llvm-e96a7f565ddcd8855d6cbcecf3f65ea08a65e558.zip external_llvm-e96a7f565ddcd8855d6cbcecf3f65ea08a65e558.tar.gz external_llvm-e96a7f565ddcd8855d6cbcecf3f65ea08a65e558.tar.bz2 |
Fix @llvm.frameaddress codegen. FP elimination optimization should be disabled when frame address is desired. Also add support for depth > 0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56683 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CellSPU/SPURegisterInfo.cpp')
-rw-r--r-- | lib/Target/CellSPU/SPURegisterInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/CellSPU/SPURegisterInfo.cpp b/lib/Target/CellSPU/SPURegisterInfo.cpp index 882f79f..18ca703 100644 --- a/lib/Target/CellSPU/SPURegisterInfo.cpp +++ b/lib/Target/CellSPU/SPURegisterInfo.cpp @@ -294,7 +294,8 @@ BitVector SPURegisterInfo::getReservedRegs(const MachineFunction &MF) const { // static bool needsFP(const MachineFunction &MF) { const MachineFrameInfo *MFI = MF.getFrameInfo(); - return NoFramePointerElim || MFI->hasVarSizedObjects(); + return NoFramePointerElim || MFI->hasVarSizedObjects() || + MFI->isFrameAddressTaken(); } //-------------------------------------------------------------------------- |