[llvm-commits] [llvm] r61459 - /llvm/trunk/include/llvm/CodeGen/LiveInterval.h
Owen Anderson
resistor at mac.com
Sun Dec 28 13:57:03 PST 2008
Author: resistor
Date: Sun Dec 28 15:57:02 2008
New Revision: 61459
URL: http://llvm.org/viewvc/llvm-project?rev=61459&view=rev
Log:
Forgot to commit this file.
Add a clear() method to remove all ranges and value numbers for a live interval.
Modified:
llvm/trunk/include/llvm/CodeGen/LiveInterval.h
Modified: llvm/trunk/include/llvm/CodeGen/LiveInterval.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/LiveInterval.h?rev=61459&r1=61458&r2=61459&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/LiveInterval.h (original)
+++ llvm/trunk/include/llvm/CodeGen/LiveInterval.h Sun Dec 28 15:57:02 2008
@@ -145,6 +145,16 @@
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.
///
More information about the llvm-commits
mailing list