forked from OSchip/llvm-project
parse constantexpr arguments into a smallvector: 1.5% speedup reading 176.gcc
llvm-svn: 33980
This commit is contained in:
parent
260cfa99b2
commit
6236b473ef
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue