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 | 6d56368cafb5e277842e22247eae8ecc563cb630 (patch) | |
tree | 907d4efa34819fed76777a42ef6b1dfb0b3fcfdd /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 66272a545b899de017d4d7a2dd1f7f734a36e76d (diff) | |
download | bcm5719-llvm-6d56368cafb5e277842e22247eae8ecc563cb630.tar.gz bcm5719-llvm-6d56368cafb5e277842e22247eae8ecc563cb630.zip |
Spiller now remove unused spill slots.
llvm-svn: 47657
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 30896172883..9bcf250aea8 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -350,6 +350,10 @@ void MachineFrameInfo::print(const MachineFunction &MF, std::ostream &OS) const{ for (unsigned i = 0, e = Objects.size(); i != e; ++i) { const StackObject &SO = Objects[i]; OS << " <fi #" << (int)(i-NumFixedObjects) << ">: "; + if (SO.Size == ~0ULL) { + OS << "dead\n"; + continue; + } if (SO.Size == 0) OS << "variable sized"; else |