Changes in directory llvm/lib/Bytecode/Reader:

Reader.cpp updated: 1.231 -> 1.232
---
Log message:

parse constantexpr arguments into a smallvector: 1.5% speedup reading 176.gcc 


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

 Reader.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Bytecode/Reader/Reader.cpp
diff -u llvm/lib/Bytecode/Reader/Reader.cpp:1.231 
llvm/lib/Bytecode/Reader/Reader.cpp:1.232
--- llvm/lib/Bytecode/Reader/Reader.cpp:1.231   Tue Feb  6 23:08:39 2007
+++ llvm/lib/Bytecode/Reader/Reader.cpp Tue Feb  6 23:15:28 2007
@@ -1147,7 +1147,7 @@
     --isExprNumArgs;
 
     // FIXME: Encoding of constant exprs could be much more compact!
-    std::vector<Constant*> ArgVec;
+    SmallVector<Constant*, 8> ArgVec;
     ArgVec.reserve(isExprNumArgs);
     unsigned Opcode = read_vbr_uint();
 



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to