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

Chandler Carruth chandlerc at google.com
Sun Aug 10 21:23:32 PDT 2014


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140810/00814ad5/attachment.html>


More information about the llvm-commits mailing list