Changes in directory llvm/include/llvm:
ParameterAttributes.h updated: 1.5 -> 1.6 --- Log message: Chris convinced me that the default size of the SmallVector (2) was too small. Since it doesn't cost much to have 2 more (8 bytes), but not having them would require a malloc as soon as the third one is needed. Setting the default to 4 delays the malloc until the 5th parameter attribute. --- Diffs of the changes: (+1 -1) ParameterAttributes.h | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/include/llvm/ParameterAttributes.h diff -u llvm/include/llvm/ParameterAttributes.h:1.5 llvm/include/llvm/ParameterAttributes.h:1.6 --- llvm/include/llvm/ParameterAttributes.h:1.5 Sun Apr 8 20:26:02 2007 +++ llvm/include/llvm/ParameterAttributes.h Sun Apr 8 20:53:54 2007 @@ -156,7 +156,7 @@ uint16_t index; ///< Index of the parameter for which the attributes apply }; - SmallVector<ParamAttrsWithIndex,2> attrs; ///< The list of attributes + SmallVector<ParamAttrsWithIndex,4> attrs; ///< The list of attributes /// @} }; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits