[llvm-commits] [llvm] r70212 - /llvm/trunk/lib/CodeGen/LiveInterval.cpp
Evan Cheng
evan.cheng at apple.com
Mon Apr 27 10:35:21 PDT 2009
Author: evancheng
Date: Mon Apr 27 12:35:19 2009
New Revision: 70212
URL: http://llvm.org/viewvc/llvm-project?rev=70212&view=rev
Log:
Also delete last unused val#.
Modified:
llvm/trunk/lib/CodeGen/LiveInterval.cpp
Modified: llvm/trunk/lib/CodeGen/LiveInterval.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveInterval.cpp?rev=70212&r1=70211&r2=70212&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveInterval.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveInterval.cpp Mon Apr 27 12:35:19 2009
@@ -629,6 +629,12 @@
UnusedValNo = 0;
}
}
+
+ if (UnusedValNo) {
+ // Delete the last unused val#.
+ valnos.pop_back();
+ UnusedValNo->~VNInfo();
+ }
}
void LiveInterval::MergeInClobberRange(unsigned Start, unsigned End,
More information about the llvm-commits
mailing list