OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60d4f6d
)
Forgot to commit this file.
author
Owen Anderson
<resistor@mac.com>
Sun, 28 Dec 2008 21:57:02 +0000
(21:57 +0000)
committer
Owen Anderson
<resistor@mac.com>
Sun, 28 Dec 2008 21:57:02 +0000
(21:57 +0000)
Add a clear() method to remove all ranges and value numbers for a live interval.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61459
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/LiveInterval.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/LiveInterval.h
b/include/llvm/CodeGen/LiveInterval.h
index
880d541
..
86aada3
100644
(file)
--- a/
include/llvm/CodeGen/LiveInterval.h
+++ b/
include/llvm/CodeGen/LiveInterval.h
@@
-145,6
+145,16
@@
namespace llvm {
while (I->end <= Pos) ++I;
return I;
}
+
+ void clear() {
+ while (!valnos.empty()) {
+ VNInfo *VNI = valnos.back();
+ valnos.pop_back();
+ VNI->~VNInfo();
+ }
+
+ ranges.clear();
+ }
/// isStackSlot - Return true if this is a stack slot interval.
///