[llvm-commits] CVS: llvm/lib/Transforms/IPO/DeadTypeElimination.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Mar 5 21:42:51 PST 2005
Changes in directory llvm/lib/Transforms/IPO:
DeadTypeElimination.cpp updated: 1.53 -> 1.54
---
Log message:
Make this MUCH faster by avoiding a linear search in the symbol table code.
---
Diffs of the changes: (+1 -2)
DeadTypeElimination.cpp | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)
Index: llvm/lib/Transforms/IPO/DeadTypeElimination.cpp
diff -u llvm/lib/Transforms/IPO/DeadTypeElimination.cpp:1.53 llvm/lib/Transforms/IPO/DeadTypeElimination.cpp:1.54
--- llvm/lib/Transforms/IPO/DeadTypeElimination.cpp:1.53 Sun Sep 19 23:43:34 2004
+++ llvm/lib/Transforms/IPO/DeadTypeElimination.cpp Sat Mar 5 23:42:36 2005
@@ -80,8 +80,7 @@
// the type is not used, remove it.
const Type *RHS = TI->second;
if (ShouldNukeSymtabEntry(RHS) || !UsedTypes.count(RHS)) {
- SymbolTable::type_iterator ToRemove = TI++;
- ST.remove(ToRemove->second);
+ ST.remove(TI++);
++NumKilled;
Changed = true;
} else {
More information about the llvm-commits
mailing list