summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-02-24 02:15:43 +0000
committerJim Grosbach <grosbach@apple.com>2010-02-24 02:15:43 +0000
commit2921550485a4370e2cf4c7b2bb55a2a6ebf6de45 (patch)
treef9e21e0a2ce19d35e3f6ee42b496bac862fe8eb0 /llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp
parent6ad4bcb0daf5ee4d777c14e2b0637be346323563 (diff)
downloadbcm5719-llvm-2921550485a4370e2cf4c7b2bb55a2a6ebf6de45.tar.gz
bcm5719-llvm-2921550485a4370e2cf4c7b2bb55a2a6ebf6de45.zip
handle very large call frames when require SPAdj != 0 for Thumb1
llvm-svn: 97013
Diffstat (limited to 'llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp b/llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp
index 1c56808273e..e941a769c9d 100644
--- a/llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp
+++ b/llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp
@@ -1092,7 +1092,7 @@ hasReservedCallFrame(MachineFunction &MF) const {
bool ARMBaseRegisterInfo::
canSimplifyCallFramePseudos(MachineFunction &MF) const {
ARMFunctionInfo *AFI = MF.getInfo<ARMFunctionInfo>();
- return hasReservedCallFrame(MF) || (AFI->isThumb1OnlyFunction() && hasFP(MF));
+ return hasReservedCallFrame(MF) || MF.getFrameInfo()->hasVarSizedObjects();
}
static void
OpenPOWER on IntegriCloud