diff options
author | Chris Lattner <sabre@nondot.org> | 2007-02-07 05:15:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-02-07 05:15:28 +0000 |
commit | 670ccfe6a473c3fdab6bc958ad9fc74ef54031d3 (patch) | |
tree | a25118788f3666ddb2d01cbd2a5d8765fad54df1 /lib/Bytecode | |
parent | 1b1c95c9bfb7438a3009b1ccf687801e53daef62 (diff) |
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
Diffstat (limited to 'lib/Bytecode')
-rw-r--r-- | lib/Bytecode/Reader/Reader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp index 17d68248f4..e6b9d8f655 100644 --- a/lib/Bytecode/Reader/Reader.cpp +++ b/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<Constant*> ArgVec; + SmallVector<Constant*, 8> ArgVec; ArgVec.reserve(isExprNumArgs); unsigned Opcode = read_vbr_uint(); |