diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-02-27 03:04:06 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-02-27 03:04:06 +0000 |
commit | d36531249a9a9500e516148e7e72d4c0a7a4d0ee (patch) | |
tree | 6989d7bcac7fd80359addc3fa13e899ff8961cfc /lib/CodeGen/PrologEpilogInserter.cpp | |
parent | 1953ecb0a6fc8520b34b52fd04f7476a7eb4613f (diff) | |
download | external_llvm-d36531249a9a9500e516148e7e72d4c0a7a4d0ee.zip external_llvm-d36531249a9a9500e516148e7e72d4c0a7a4d0ee.tar.gz external_llvm-d36531249a9a9500e516148e7e72d4c0a7a4d0ee.tar.bz2 |
Spiller now remove unused spill slots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47657 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PrologEpilogInserter.cpp')
-rw-r--r-- | lib/CodeGen/PrologEpilogInserter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/PrologEpilogInserter.cpp b/lib/CodeGen/PrologEpilogInserter.cpp index 1fec4c9..3cc2aa6 100644 --- a/lib/CodeGen/PrologEpilogInserter.cpp +++ b/lib/CodeGen/PrologEpilogInserter.cpp @@ -406,6 +406,8 @@ void PEI::calculateFrameObjectOffsets(MachineFunction &Fn) { continue; if (RS && (int)i == RS->getScavengingFrameIndex()) continue; + if (FFI->isDeadObjectIndex(i)) + continue; // If stack grows down, we need to add size of find the lowest // address of the object. |