summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SplitKit.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-08-06 18:46:59 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-08-06 18:46:59 +0000
commit8c0f69315031d89080caf2c487bab08936e50b34 (patch)
tree1e4cee29eecf2639c509a1bb32ab3711bdc5896e /llvm/lib/CodeGen/SplitKit.cpp
parenta7aed18624f7783b7c31b06069c43bec89f1813f (diff)
downloadbcm5719-llvm-8c0f69315031d89080caf2c487bab08936e50b34.tar.gz
bcm5719-llvm-8c0f69315031d89080caf2c487bab08936e50b34.zip
Add LiveInterval::RenumberValues - Garbage collection for VNInfos.
After heavy editing of a live interval, it is much easier to simply renumber the live values instead of trying to keep track of the unused ones. llvm-svn: 110463
Diffstat (limited to 'llvm/lib/CodeGen/SplitKit.cpp')
-rw-r--r--llvm/lib/CodeGen/SplitKit.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SplitKit.cpp b/llvm/lib/CodeGen/SplitKit.cpp
index fdc448d1e8b..9b0d73a4f23 100644
--- a/llvm/lib/CodeGen/SplitKit.cpp
+++ b/llvm/lib/CodeGen/SplitKit.cpp
@@ -553,8 +553,10 @@ void SplitEditor::rewrite() {
}
// dupli_ goes in last, after rewriting.
- if (dupli_)
+ if (dupli_) {
+ dupli_->RenumberValues();
intervals_.push_back(dupli_);
+ }
// FIXME: *Calculate spill weights, allocation hints, and register classes for
// firstInterval..
OpenPOWER on IntegriCloud