diff options
| author | Jim Grosbach <grosbach@apple.com> | 2009-11-15 21:45:34 +0000 |
|---|---|---|
| committer | Jim Grosbach <grosbach@apple.com> | 2009-11-15 21:45:34 +0000 |
| commit | 860fb5bb3ded49293473d043b5206742c14b3476 (patch) | |
| tree | 42736e2f85df41f9651a9b26ed436091643efa5b /lib/Target/ARM/ARMTargetMachine.cpp | |
| parent | 4b93798c0fd881d607fba728f7c138f8def59315 (diff) | |
| download | external_llvm-860fb5bb3ded49293473d043b5206742c14b3476.zip external_llvm-860fb5bb3ded49293473d043b5206742c14b3476.tar.gz external_llvm-860fb5bb3ded49293473d043b5206742c14b3476.tar.bz2 | |
Detect need for autoalignment of the stack earlier to catch spills more
conservatively. eliminateFrameIndex() machinery adjust to handle addr mode
6 (vld1/vst1) used for spills. Fix tests to expect aligned Q-reg spilling
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88874 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMTargetMachine.cpp')
| -rw-r--r-- | lib/Target/ARM/ARMTargetMachine.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMTargetMachine.cpp b/lib/Target/ARM/ARMTargetMachine.cpp index 4d20a5c..2564ed9 100644 --- a/lib/Target/ARM/ARMTargetMachine.cpp +++ b/lib/Target/ARM/ARMTargetMachine.cpp @@ -93,6 +93,10 @@ bool ARMBaseTargetMachine::addPreRegAlloc(PassManagerBase &PM, if (Subtarget.hasNEON()) PM.add(createNEONPreAllocPass()); + // Calculate and set max stack object alignment early, so we can decide + // whether we will need stack realignment (and thus FP). + PM.add(createARMMaxStackAlignmentCalculatorPass()); + // FIXME: temporarily disabling load / store optimization pass for Thumb1. if (OptLevel != CodeGenOpt::None && !Subtarget.isThumb1Only()) PM.add(createARMLoadStoreOptimizationPass(true)); |
