mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-04 09:45:00 +00:00
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
This commit is contained in:
parent
73d8191b27
commit
4fb4d4c6e0
@ -493,8 +493,7 @@ bool ARMBaseRegisterInfo::hasBasePointer(const MachineFunction &MF) const {
|
||||
// When outgoing call frames are so large that we adjust the stack pointer
|
||||
// around the call, we can no longer use the stack pointer to reach the
|
||||
// emergency spill slot.
|
||||
if (needsStackRealignment(MF) && (MFI->hasVarSizedObjects() ||
|
||||
!TFI->hasReservedCallFrame(MF)))
|
||||
if (needsStackRealignment(MF) && !TFI->hasReservedCallFrame(MF))
|
||||
return true;
|
||||
|
||||
// Thumb has trouble with negative offsets from the FP. Thumb2 has a limited
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user