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

llvm-svn: 33980
This commit is contained in:
Chris Lattner 2007-02-07 05:15:28 +00:00
parent 260cfa99b2
commit 6236b473ef
1 changed files with 1 additions and 1 deletions

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