mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-03 00:33:09 +00:00
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:
parent
1b1c95c9bf
commit
670ccfe6a4
@ -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…
x
Reference in New Issue
Block a user