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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33980 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-02-07 05:15:28 +00:00
parent 1b1c95c9bf
commit 670ccfe6a4

View 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();