aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2009-11-04 23:11:07 +0000
committerJim Grosbach <grosbach@apple.com>2009-11-04 23:11:07 +0000
commitdb1751a9222dbfc62e6d7c2ec0b084d353068931 (patch)
tree047a1b6fd4f0eede89a97d0c387824e89758c737 /lib
parent6db06a0866cd36fec05e6d9afb357ce8efb575e9 (diff)
downloadexternal_llvm-db1751a9222dbfc62e6d7c2ec0b084d353068931.zip
external_llvm-db1751a9222dbfc62e6d7c2ec0b084d353068931.tar.gz
external_llvm-db1751a9222dbfc62e6d7c2ec0b084d353068931.tar.bz2
Now that the memory leak from McCat/08-main has been fixed (86056), re-enable
aggressive testing of dynamic stack alignment. Note that this is off by default, and enabled for LLCBETA nightly results. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86064 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/ARM/ARMBaseRegisterInfo.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/Target/ARM/ARMBaseRegisterInfo.cpp b/lib/Target/ARM/ARMBaseRegisterInfo.cpp
index 3e5f4a2..da5d0d9 100644
--- a/lib/Target/ARM/ARMBaseRegisterInfo.cpp
+++ b/lib/Target/ARM/ARMBaseRegisterInfo.cpp
@@ -476,7 +476,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) {
@@ -509,13 +513,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() &&
AFI->hasStackFrame() &&
- (MFI->getMaxAlignment() > StackAlign) &&
+// (MFI->getMaxAlignment() > StackAlign) &&
!MFI->hasVarSizedObjects());
}