summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMFrameLowering.cpp
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2012-03-20 19:28:22 +0000
committerBob Wilson <bob.wilson@apple.com>2012-03-20 19:28:22 +0000
commit055a8127c9ffee287807fe7cc1b115d0f40162b0 (patch)
tree82c3224d2088f1235f7b4b53cc84f777ed0c2cef /lib/Target/ARM/ARMFrameLowering.cpp
parent666da1611a87f84c3971323445a6687bee4606fd (diff)
downloadllvm-055a8127c9ffee287807fe7cc1b115d0f40162b0.tar.gz
llvm-055a8127c9ffee287807fe7cc1b115d0f40162b0.tar.bz2
llvm-055a8127c9ffee287807fe7cc1b115d0f40162b0.tar.xz
Remove some redundant checks.
ARMFrameLowering::hasReservedCallFrame is already checking for variable sized objects, so there's no point in checking it twice. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153109 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMFrameLowering.cpp')
-rw-r--r--lib/Target/ARM/ARMFrameLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMFrameLowering.cpp b/lib/Target/ARM/ARMFrameLowering.cpp
index 0fd60254df..bd4b2a9da9 100644
--- a/lib/Target/ARM/ARMFrameLowering.cpp
+++ b/lib/Target/ARM/ARMFrameLowering.cpp
@@ -501,7 +501,7 @@ ARMFrameLowering::ResolveFrameIndexReference(const MachineFunction &MF,
// SP can move around if there are allocas. We may also lose track of SP
// when emergency spilling inside a non-reserved call frame setup.
- bool hasMovingSP = MFI->hasVarSizedObjects() || !hasReservedCallFrame(MF);
+ bool hasMovingSP = !hasReservedCallFrame(MF);
// When dynamically realigning the stack, use the frame pointer for
// parameters, and the stack/base pointer for locals.