diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2009-04-27 17:35:19 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2009-04-27 17:35:19 +0000 |
| commit | a630ce5fff1f97f295c456c70a33348344481ec2 (patch) | |
| tree | c5e6e9ce74522139958da5107b3bd78189a9e5aa /llvm/lib/CodeGen | |
| parent | 2986972118ddd6ac9d0cc4481bca0f1497557e40 (diff) | |
| download | bcm5719-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.cpp | 6 |
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, |

