diff options
author | Chris Lattner <sabre@nondot.org> | 2007-02-13 07:28:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-02-13 07:28:20 +0000 |
commit | 189395282649f11ece08bc2a792187de3669129c (patch) | |
tree | b2d7844706593d5ee7d78ab0572acd1bcc97e699 /lib/Bytecode | |
parent | 8c06509f9590a63ab2d4361945aac18c02b71f0c (diff) | |
download | external_llvm-189395282649f11ece08bc2a792187de3669129c.zip external_llvm-189395282649f11ece08bc2a792187de3669129c.tar.gz external_llvm-189395282649f11ece08bc2a792187de3669129c.tar.bz2 |
Use a SmallVector to reduce heap traffic. This speeds up bcreader 10%
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34231 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode')
-rw-r--r-- | lib/Bytecode/Reader/Reader.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bytecode/Reader/Reader.h b/lib/Bytecode/Reader/Reader.h index ca966f1..a8e879c 100644 --- a/lib/Bytecode/Reader/Reader.h +++ b/lib/Bytecode/Reader/Reader.h @@ -80,7 +80,7 @@ public: /// globals section. /// @brief A list of values as a User of those Values. class ValueList : public User { - std::vector<Use> Uses; + SmallVector<Use, 32> Uses; public: ValueList() : User(Type::VoidTy, Value::ArgumentVal, 0, 0) {} |