[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.h

Chris Lattner sabre at nondot.org
Fri Feb 9 23:01:21 PST 2007



Changes in directory llvm/lib/Bytecode/Writer:

SlotCalculator.h updated: 1.47 -> 1.48
---
Log message:

Switch NodeMap from an std::map to a DenseMap.  This speeds up bcwriting
of 447.dealII from 3.3s to 1.8s (80% faster).


---
Diffs of the changes:  (+1 -1)

 SlotCalculator.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Bytecode/Writer/SlotCalculator.h
diff -u llvm/lib/Bytecode/Writer/SlotCalculator.h:1.47 llvm/lib/Bytecode/Writer/SlotCalculator.h:1.48
--- llvm/lib/Bytecode/Writer/SlotCalculator.h:1.47	Sat Feb 10 00:42:23 2007
+++ llvm/lib/Bytecode/Writer/SlotCalculator.h	Sat Feb 10 01:01:05 2007
@@ -50,7 +50,7 @@
   typedef std::vector<const Value*> TypePlane;
   std::vector<TypePlane> Table;
   TypeList Types;
-  typedef std::map<const Value*, unsigned> NodeMapType;
+  typedef DenseMap<const Value*, unsigned> NodeMapType;
   NodeMapType NodeMap;
 
   typedef std::map<const Type*, unsigned> TypeMapType;






More information about the llvm-commits mailing list