diff options
author | Jim Grosbach <grosbach@apple.com> | 2009-11-09 23:11:45 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2009-11-09 23:11:45 +0000 |
commit | 803b48a155eb2b3f9fe3823ecd7cbbd0089b2809 (patch) | |
tree | a6e02f229f8a57592f5e77aa90118ced4db32622 /lib/Target/ARM/ARMBaseRegisterInfo.cpp | |
parent | 75adb32c6049dcfb6445bfc00da6f488622e07a7 (diff) | |
download | external_llvm-803b48a155eb2b3f9fe3823ecd7cbbd0089b2809.zip external_llvm-803b48a155eb2b3f9fe3823ecd7cbbd0089b2809.tar.gz external_llvm-803b48a155eb2b3f9fe3823ecd7cbbd0089b2809.tar.bz2 |
Now that the default is 'enabled,' a separate command line option for ARM is
not necessary.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86621 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMBaseRegisterInfo.cpp')
-rw-r--r-- | lib/Target/ARM/ARMBaseRegisterInfo.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/Target/ARM/ARMBaseRegisterInfo.cpp b/lib/Target/ARM/ARMBaseRegisterInfo.cpp index b34a295..7a679e8 100644 --- a/lib/Target/ARM/ARMBaseRegisterInfo.cpp +++ b/lib/Target/ARM/ARMBaseRegisterInfo.cpp @@ -44,10 +44,6 @@ static cl::opt<bool> ReuseFrameIndexVals("arm-reuse-frame-index-vals", cl::Hidden, cl::init(true), cl::desc("Reuse repeated frame index values")); -static cl::opt<bool> -ARMDynamicStackAlign("arm-dynamic-stack-alignment", cl::Hidden, cl::init(true), - cl::desc("Dynamically re-align the stack as needed")); - unsigned ARMBaseRegisterInfo::getRegisterNumbering(unsigned RegEnum, bool *isSPVFP) { if (isSPVFP) @@ -504,9 +500,6 @@ bool ARMBaseRegisterInfo::hasFP(const MachineFunction &MF) const { bool ARMBaseRegisterInfo:: needsStackRealignment(const MachineFunction &MF) const { - if (!ARMDynamicStackAlign) - return false; - const MachineFrameInfo *MFI = MF.getFrameInfo(); const ARMFunctionInfo *AFI = MF.getInfo<ARMFunctionInfo>(); unsigned StackAlign = MF.getTarget().getFrameInfo()->getStackAlignment(); @@ -596,7 +589,7 @@ ARMBaseRegisterInfo::processFunctionBeforeCalleeSavedScan(MachineFunction &MF, // Calculate and set max stack object alignment early, so we can decide // whether we will need stack realignment (and thus FP). - if (ARMDynamicStackAlign) { + if (RealignStack) { unsigned MaxAlign = std::max(MFI->getMaxAlignment(), calculateMaxStackAlignment(MFI)); MFI->setMaxAlignment(MaxAlign); |