[llvm-commits] [llvm] r151980 - /llvm/trunk/include/llvm/Bitcode/BitCodes.h
Benjamin Kramer
benny.kra at googlemail.com
Sat Mar 3 07:04:13 PST 2012
Author: d0k
Date: Sat Mar 3 09:04:13 2012
New Revision: 151980
URL: http://llvm.org/viewvc/llvm-project?rev=151980&view=rev
Log:
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.
Modified:
llvm/trunk/include/llvm/Bitcode/BitCodes.h
Modified: llvm/trunk/include/llvm/Bitcode/BitCodes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Bitcode/BitCodes.h?rev=151980&r1=151979&r2=151980&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Bitcode/BitCodes.h (original)
+++ llvm/trunk/include/llvm/Bitcode/BitCodes.h Sat Mar 3 09:04:13 2012
@@ -155,11 +155,13 @@
};
+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:
More information about the llvm-commits
mailing list