OSDN Git Service

parse constantexpr arguments into a smallvector: 1.5% speedup reading 176.gcc
authorChris Lattner <sabre@nondot.org>
Wed, 7 Feb 2007 05:15:28 +0000 (05:15 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 7 Feb 2007 05:15:28 +0000 (05:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33980 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Reader/Reader.cpp

index 17d6824..e6b9d8f 100644 (file)
@@ -1147,7 +1147,7 @@ Value *BytecodeReader::ParseConstantPoolValue(unsigned TypeID) {
     --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();