diff options
author | Chad Rosier <mcrosier@apple.com> | 2011-10-18 05:28:00 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2011-10-18 05:28:00 +0000 |
commit | fe04757f5e06ab15208ac0a2ab8d7e83c62b9f0d (patch) | |
tree | 679d85c4d3576a429a1419196494da9ecb339d96 /lib/Target/ARM/ARMBaseRegisterInfo.cpp | |
parent | 895ede819f0558574fce66cc1eca80eee2deaa4e (diff) | |
download | llvm-fe04757f5e06ab15208ac0a2ab8d7e83c62b9f0d.tar.gz llvm-fe04757f5e06ab15208ac0a2ab8d7e83c62b9f0d.tar.bz2 llvm-fe04757f5e06ab15208ac0a2ab8d7e83c62b9f0d.tar.xz |
Add support for dynamic stack realignment when in thumb1 mode.
rdar://10288916
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142337 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMBaseRegisterInfo.cpp')
-rw-r--r-- | lib/Target/ARM/ARMBaseRegisterInfo.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Target/ARM/ARMBaseRegisterInfo.cpp b/lib/Target/ARM/ARMBaseRegisterInfo.cpp index 7c42342229..48e3c52460 100644 --- a/lib/Target/ARM/ARMBaseRegisterInfo.cpp +++ b/lib/Target/ARM/ARMBaseRegisterInfo.cpp @@ -626,13 +626,10 @@ bool ARMBaseRegisterInfo::hasBasePointer(const MachineFunction &MF) const { bool ARMBaseRegisterInfo::canRealignStack(const MachineFunction &MF) const { const MachineFrameInfo *MFI = MF.getFrameInfo(); - const ARMFunctionInfo *AFI = MF.getInfo<ARMFunctionInfo>(); // We can't realign the stack if: // 1. Dynamic stack realignment is explicitly disabled, - // 2. This is a Thumb1 function (it's not useful, so we don't bother), or - // 3. There are VLAs in the function and the base pointer is disabled. - return (RealignStack && !AFI->isThumb1OnlyFunction() && - (!MFI->hasVarSizedObjects() || EnableBasePointer)); + // 2. There are VLAs in the function and the base pointer is disabled. + return (RealignStack && (!MFI->hasVarSizedObjects() || EnableBasePointer)); } bool ARMBaseRegisterInfo:: |