[llvm] r215335 - Increase the size of this SmallVector in CloneNodeWithValues.

Hans Wennborg hans at chromium.org
Mon Aug 11 06:57:48 PDT 2014


On Sun, Aug 10, 2014 at 9:23 PM, Chandler Carruth <chandlerc at google.com> wrote:
>
> On Sun, Aug 10, 2014 at 7:21 PM, Hans Wennborg <hans at hanshq.net> wrote:
>>
>> Author: hans
>> Date: Sun Aug 10 21:21:19 2014
>> New Revision: 215335
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=215335&view=rev
>> Log:
>> Increase the size of this SmallVector in CloneNodeWithValues.
>>
>> In a Clang bootstrap, the size of this vector was always 6.
>
>
> I would do 8 here. Powers of two, provided they're small enough, will often
> result in faster computations.

Fixed in r215355.

 - Hans



More information about the llvm-commits mailing list