[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Reader.h
Chris Lattner
sabre at nondot.org
Mon Feb 12 23:28:36 PST 2007
Changes in directory llvm/lib/Bytecode/Reader:
Reader.h updated: 1.49 -> 1.50
---
Log message:
Use a SmallVector to reduce heap traffic. This speeds up bcreader 10%
---
Diffs of the changes: (+1 -1)
Reader.h | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Bytecode/Reader/Reader.h
diff -u llvm/lib/Bytecode/Reader/Reader.h:1.49 llvm/lib/Bytecode/Reader/Reader.h:1.50
--- llvm/lib/Bytecode/Reader/Reader.h:1.49 Mon Feb 12 12:53:43 2007
+++ llvm/lib/Bytecode/Reader/Reader.h Tue Feb 13 01:28:20 2007
@@ -80,7 +80,7 @@
/// 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) {}
More information about the llvm-commits
mailing list