summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-02-27 03:04:06 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-02-27 03:04:06 +0000
commit6d56368cafb5e277842e22247eae8ecc563cb630 (patch)
tree907d4efa34819fed76777a42ef6b1dfb0b3fcfdd /llvm/lib/CodeGen/MachineFunction.cpp
parent66272a545b899de017d4d7a2dd1f7f734a36e76d (diff)
downloadbcm5719-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.cpp4
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
OpenPOWER on IntegriCloud