Use a SmallVector to reduce heap traffic. This speeds up bcreader 10%

llvm-svn: 34231
This commit is contained in:
Chris Lattner 2007-02-13 07:28:20 +00:00
parent 3490afcd50
commit 2f015c1ccf

View File

@ -80,7 +80,7 @@ public:
/// globals section. /// globals section.
/// @brief A list of values as a User of those Values. /// @brief A list of values as a User of those Values.
class ValueList : public User { class ValueList : public User {
std::vector<Use> Uses; SmallVector<Use, 32> Uses;
public: public:
ValueList() : User(Type::VoidTy, Value::ArgumentVal, 0, 0) {} ValueList() : User(Type::VoidTy, Value::ArgumentVal, 0, 0) {}