Enable the small vector POD optimization for BitCodeAbbrevOp.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 3 Mar 2012 15:04:13 +0000 (15:04 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 3 Mar 2012 15:04:13 +0000 (15:04 +0000)
While at it bump the small vector size a bit, it's inside a heap-allocated class.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151980 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Bitcode/BitCodes.h

index 172ce6e09096f79041b738ec0c78156fa34a681a..28e1ab1c8711b3c069ce4d957cccc7dc55eecd8d 100644 (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: