From 6236b473ef9685677b4deb1d958e8253b9bc6bc3 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 7 Feb 2007 05:15:28 +0000 Subject: [PATCH] parse constantexpr arguments into a smallvector: 1.5% speedup reading 176.gcc llvm-svn: 33980 --- llvm/lib/Bytecode/Reader/Reader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Bytecode/Reader/Reader.cpp b/llvm/lib/Bytecode/Reader/Reader.cpp index 17d68248f433..e6b9d8f65565 100644 --- a/llvm/lib/Bytecode/Reader/Reader.cpp +++ b/llvm/lib/Bytecode/Reader/Reader.cpp @@ -1147,7 +1147,7 @@ Value *BytecodeReader::ParseConstantPoolValue(unsigned TypeID) { --isExprNumArgs; // FIXME: Encoding of constant exprs could be much more compact! - std::vector ArgVec; + SmallVector ArgVec; ArgVec.reserve(isExprNumArgs); unsigned Opcode = read_vbr_uint();