diff options
author | Jim Grosbach <grosbach@apple.com> | 2009-10-29 02:41:21 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2009-10-29 02:41:21 +0000 |
commit | b352d76480ea7c1497b473c309747077fe7f183b (patch) | |
tree | 724f641423f98b65091d9b8451ac71b92ac70e9d /llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp | |
parent | 1a8a2e8e97fce71ca9a3194482b7d1669d6fd897 (diff) | |
download | bcm5719-llvm-b352d76480ea7c1497b473c309747077fe7f183b.tar.gz bcm5719-llvm-b352d76480ea7c1497b473c309747077fe7f183b.zip |
To get more thorough testing from llc-beta nightly runs, do dynamic stack
realignment regardless of whether it's strictly necessary.
llvm-svn: 85476
Diffstat (limited to 'llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp b/llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp index b2bf4f07789..3de83af8344 100644 --- a/llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp +++ b/llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp @@ -467,7 +467,11 @@ ARMBaseRegisterInfo::UpdateRegAllocHint(unsigned Reg, unsigned NewReg, } static unsigned calculateMaxStackAlignment(const MachineFrameInfo *FFI) { - unsigned MaxAlign = 0; + // FIXME: For now, force at least 128-bit alignment. This will push the + // nightly tester harder for making sure things work correctly. When + // we're ready to enable this for real, this goes back to starting at zero. + unsigned MaxAlign = 16; +// unsigned MaxAlign = 0; for (int i = FFI->getObjectIndexBegin(), e = FFI->getObjectIndexEnd(); i != e; ++i) { @@ -500,14 +504,15 @@ needsStackRealignment(const MachineFunction &MF) const { if (!ARMDynamicStackAlign) return false; + // FIXME: To force more brutal testing, realign whether we need to or not. + // Change this to be more selective when we turn it on for real, of course. const MachineFrameInfo *MFI = MF.getFrameInfo(); const ARMFunctionInfo *AFI = MF.getInfo<ARMFunctionInfo>(); - unsigned StackAlign = MF.getTarget().getFrameInfo()->getStackAlignment(); +// unsigned StackAlign = MF.getTarget().getFrameInfo()->getStackAlignment(); return (RealignStack && !AFI->isThumb1OnlyFunction() && - (MFI->getMaxAlignment() > StackAlign) && +// (MFI->getMaxAlignment() > StackAlign) && !MFI->hasVarSizedObjects()); - } bool ARMBaseRegisterInfo::cannotEliminateFrame(const MachineFunction &MF) const { |