[llvm-commits] CVS: llvm/include/llvm/ParameterAttributes.h
Reid Spencer
reid at x10sys.com
Sun Apr 8 18:54:11 PDT 2007
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
/// @}
};
More information about the llvm-commits
mailing list