diff options
author | Chad Rosier <mcrosier@apple.com> | 2011-10-20 00:07:12 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2011-10-20 00:07:12 +0000 |
commit | add38c12b84a57d282aa624ba764a9a2b3f94c44 (patch) | |
tree | 5323e1790b6d4a68c5ce2c9b55867d3add020561 /llvm/lib/Target/ARM/ARMFrameLowering.cpp | |
parent | 88b4fa21c84af63dcc80ed622062a0e22c2af538 (diff) | |
download | bcm5719-llvm-add38c12b84a57d282aa624ba764a9a2b3f94c44.tar.gz bcm5719-llvm-add38c12b84a57d282aa624ba764a9a2b3f94c44.zip |
Revert 142337. Thumb1 still doesn't support dynamic stack realignment. :(
llvm-svn: 142557
Diffstat (limited to 'llvm/lib/Target/ARM/ARMFrameLowering.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMFrameLowering.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Target/ARM/ARMFrameLowering.cpp b/llvm/lib/Target/ARM/ARMFrameLowering.cpp index 4bac6c5fa95..2d1de6fe8e9 100644 --- a/llvm/lib/Target/ARM/ARMFrameLowering.cpp +++ b/llvm/lib/Target/ARM/ARMFrameLowering.cpp @@ -881,12 +881,10 @@ ARMFrameLowering::processFunctionBeforeCalleeSavedScan(MachineFunction &MF, // for sure what the stack size will be, but for this, an estimate is good // enough. If there anything changes it, it'll be a spill, which implies // we've used all the registers and so R4 is already used, so not marking - // it here will be OK. Also spill R4 if Thumb1 function requires stack - // realignment. + // it here will be OK. // FIXME: It will be better just to find spare register here. unsigned StackSize = estimateStackSize(MF); - if (MFI->hasVarSizedObjects() || RegInfo->needsStackRealignment(MF) || - StackSize > 508) + if (MFI->hasVarSizedObjects() || StackSize > 508) MF.getRegInfo().setPhysRegUsed(ARM::R4); } |