summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-07 05:15:28 +0000
committerChris Lattner <sabre@nondot.org>2007-02-07 05:15:28 +0000
commit6236b473ef9685677b4deb1d958e8253b9bc6bc3 (patch)
tree8783179675a320b0795dd8180bbb2756d716a552 /llvm/lib
parent260cfa99b2f26f135c1f166bd41af38cf283ed58 (diff)
downloadbcm5719-llvm-6236b473ef9685677b4deb1d958e8253b9bc6bc3.tar.gz
bcm5719-llvm-6236b473ef9685677b4deb1d958e8253b9bc6bc3.zip
parse constantexpr arguments into a smallvector: 1.5% speedup reading 176.gcc
llvm-svn: 33980
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Bytecode/Reader/Reader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bytecode/Reader/Reader.cpp b/llvm/lib/Bytecode/Reader/Reader.cpp
index 17d68248f43..e6b9d8f6556 100644
--- a/llvm/lib/Bytecode/Reader/Reader.cpp
+++ b/llvm/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();
OpenPOWER on IntegriCloud