Enable the small vector POD optimization for BitCodeAbbrevOp.

While at it bump the small vector size a bit, it's inside a heap-allocated class.

llvm-svn: 151980
This commit is contained in:
Benjamin Kramer 2012-03-03 15:04:13 +00:00
parent c7ecbfb07d
commit 74f831b97f
1 changed files with 3 additions and 1 deletions

View File

@ -155,11 +155,13 @@ public:
};
template <> struct isPodLike<BitCodeAbbrevOp> { static const bool value=true; };
/// BitCodeAbbrev - This class represents an abbreviation record. An
/// abbreviation allows a complex record that has redundancy to be stored in a
/// specialized format instead of the fully-general, fully-vbr, format.
class BitCodeAbbrev {
SmallVector<BitCodeAbbrevOp, 8> OperandList;
SmallVector<BitCodeAbbrevOp, 32> OperandList;
unsigned char RefCount; // Number of things using this.
~BitCodeAbbrev() {}
public: