summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-04-27 17:35:19 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-04-27 17:35:19 +0000
commita630ce5fff1f97f295c456c70a33348344481ec2 (patch)
treec5e6e9ce74522139958da5107b3bd78189a9e5aa /llvm/lib/CodeGen
parent2986972118ddd6ac9d0cc4481bca0f1497557e40 (diff)
downloadbcm5719-llvm-a630ce5fff1f97f295c456c70a33348344481ec2.tar.gz
bcm5719-llvm-a630ce5fff1f97f295c456c70a33348344481ec2.zip
Also delete last unused val#.
llvm-svn: 70212
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/LiveInterval.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LiveInterval.cpp b/llvm/lib/CodeGen/LiveInterval.cpp
index 0450c355dce..c34b628d5fe 100644
--- a/llvm/lib/CodeGen/LiveInterval.cpp
+++ b/llvm/lib/CodeGen/LiveInterval.cpp
@@ -629,6 +629,12 @@ void LiveInterval::MergeInClobberRanges(const LiveInterval &Clobbers,
UnusedValNo = 0;
}
}
+
+ if (UnusedValNo) {
+ // Delete the last unused val#.
+ valnos.pop_back();
+ UnusedValNo->~VNInfo();
+ }
}
void LiveInterval::MergeInClobberRange(unsigned Start, unsigned End,
OpenPOWER on IntegriCloud