diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-08-24 19:05:43 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-08-24 19:05:43 +0000 |
commit | b77d67f318f28e5028254a94502ff1125b75d0b9 (patch) | |
tree | e98c5174b29641b9fc0f5a11db1a4d6d9b720fc4 /llvm/lib/CodeGen/PrologEpilogInserter.cpp | |
parent | a209503467ffbb46068646a46780738041da49a1 (diff) | |
download | bcm5719-llvm-b77d67f318f28e5028254a94502ff1125b75d0b9.tar.gz bcm5719-llvm-b77d67f318f28e5028254a94502ff1125b75d0b9.zip |
Move enabling the local stack allocation pass into the target where it belongs.
For now it's still a command line option, but the interface to the generic
code doesn't need to know that.
llvm-svn: 111942
Diffstat (limited to 'llvm/lib/CodeGen/PrologEpilogInserter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/PrologEpilogInserter.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/PrologEpilogInserter.cpp b/llvm/lib/CodeGen/PrologEpilogInserter.cpp index e360f2c4610..4c3e796f5e3 100644 --- a/llvm/lib/CodeGen/PrologEpilogInserter.cpp +++ b/llvm/lib/CodeGen/PrologEpilogInserter.cpp @@ -41,10 +41,6 @@ using namespace llvm; -// FIXME: For testing purposes only. Remove once the pre-allocation pass -// is done. -extern cl::opt<bool> EnableLocalStackAlloc; - char PEI::ID = 0; INITIALIZE_PASS(PEI, "prologepilog", @@ -560,7 +556,7 @@ void PEI::calculateFrameObjectOffsets(MachineFunction &Fn) { // check for whether the frame is large enough to want to use virtual // frame index registers. Functions which don't want/need this optimization // will continue to use the existing code path. - if (EnableLocalStackAlloc && MFI->getUseLocalStackAllocationBlock()) { + if (MFI->getUseLocalStackAllocationBlock()) { unsigned Align = MFI->getLocalFrameMaxAlign(); // Adjust to alignment boundary. |