diff options
| author | Jim Grosbach <grosbach@apple.com> | 2010-08-04 22:12:43 +0000 |
|---|---|---|
| committer | Jim Grosbach <grosbach@apple.com> | 2010-08-04 22:12:43 +0000 |
| commit | 8732d966e19fe94cbc1343a8a5bf05023f25d279 (patch) | |
| tree | 5992a8a19fbb52bcdf28a5a82518eeb802688978 /llvm/lib | |
| parent | 22be317fe47d05fdab87c111c67d687bee1b5e29 (diff) | |
| download | bcm5719-llvm-8732d966e19fe94cbc1343a8a5bf05023f25d279.tar.gz bcm5719-llvm-8732d966e19fe94cbc1343a8a5bf05023f25d279.zip | |
oops. revert for a moment to clean up tests first.
llvm-svn: 110259
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp b/llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp index 855e07232d3..cd37633d967 100644 --- a/llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp +++ b/llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp @@ -851,18 +851,13 @@ ARMBaseRegisterInfo::processFunctionBeforeCalleeSavedScan(MachineFunction &MF, // slot of the previous FP. Also, if we have variable sized objects in the // function, stack slot references will often be negative, and some of // our instructions are positive-offset only, so conservatively consider - // that case to want a spill slot (or register) as well. Similarly, if - // the function adjusts the stack pointer during execution and the - // adjustments aren't already part of our stack size estimate, our offset - // calculations may be off, so be conservative. + // that case to want a spill slot (or register) as well. // FIXME: We could add logic to be more precise about negative offsets // and which instructions will need a scratch register for them. Is it // worth the effort and added fragility? bool BigStack = (RS && (estimateStackSize(MF) + (hasFP(MF) ? 4:0) >= - estimateRSStackSizeLimit(MF)) - || MFI->hasVarSizedObjects() - || (MFI->adjustsStack() && !canSimplifyCallFramePseudos(MF))); + estimateRSStackSizeLimit(MF))) || MFI->hasVarSizedObjects(); bool ExtraCSSpill = false; if (BigStack || !CanEliminateFrame || cannotEliminateFrame(MF)) { |

