summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitca690320fb687d3b818edec55299fa6ac4696a61 (patch)
tree818367868ccd94d5dcaa0f43b29ef599244f2575 /llvm/lib/Target/ARM/ARMFrameLowering.cpp
parent84f4f84c682ed887f11736a1c8626cc62969794a (diff)
downloadbcm5719-llvm-ca690320fb687d3b818edec55299fa6ac4696a61.tar.gz
bcm5719-llvm-ca690320fb687d3b818edec55299fa6ac4696a61.zip
Remove some redundant checks.
ARMFrameLowering::hasReservedCallFrame is already checking for variable sized objects, so there's no point in checking it twice. llvm-svn: 153109
Diffstat (limited to 'llvm/lib/Target/ARM/ARMFrameLowering.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMFrameLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMFrameLowering.cpp b/llvm/lib/Target/ARM/ARMFrameLowering.cpp
index 0fd60254dfa..bd4b2a9da98 100644
--- a/llvm/lib/Target/ARM/ARMFrameLowering.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud