diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-08-06 18:46:59 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-08-06 18:46:59 +0000 |
commit | 23436597a8efad427059f2a6db5264e6a40d2dc7 (patch) | |
tree | 6e70a3198a2ed4dc8d0eaf20e01bf511f9d523d9 /include/llvm/CodeGen/LiveInterval.h | |
parent | 90c579de5a383cee278acc3f7e7b9d0a656e6a35 (diff) | |
download | external_llvm-23436597a8efad427059f2a6db5264e6a40d2dc7.zip external_llvm-23436597a8efad427059f2a6db5264e6a40d2dc7.tar.gz external_llvm-23436597a8efad427059f2a6db5264e6a40d2dc7.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110463 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/LiveInterval.h')
-rw-r--r-- | include/llvm/CodeGen/LiveInterval.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h index 2e0651d..0c92b85 100644 --- a/include/llvm/CodeGen/LiveInterval.h +++ b/include/llvm/CodeGen/LiveInterval.h @@ -336,6 +336,10 @@ namespace llvm { return VNI; } + /// RenumberValues - Renumber all values in order of appearance and remove + /// unused values. + void RenumberValues(); + /// isOnlyLROfValNo - Return true if the specified live range is the only /// one defined by the its val#. bool isOnlyLROfValNo(const LiveRange *LR) { |