[llvm-commits] [llvm] r169157 - /llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp

Michael Ilseman milseman at apple.com
Mon Dec 3 13:44:51 PST 2012


On Dec 3, 2012, at 1:41 PM, Bill Wendling <wendling at apple.com> wrote:

> On Dec 3, 2012, at 1:34 PM, Michael Ilseman <milseman at apple.com> wrote:
> 
>> On Dec 3, 2012, at 1:33 PM, Bill Wendling <wendling at apple.com> wrote:
>> 
>>> On Dec 3, 2012, at 1:29 PM, Michael Ilseman <milseman at apple.com> wrote:
>>> 
>>>> Author: milseman
>>>> Date: Mon Dec  3 15:29:36 2012
>>>> New Revision: 169157
>>>> 
>>>> URL: http://llvm.org/viewvc/llvm-project?rev=169157&view=rev
>>>> Log:
>>>> Since this SmallVector immediately grows on the next line, don't waste stack space. SmallVector is still needed due to existing APIs growing their arguments
>>>> 
>>> Why not make the size 256*1024 instead of 0?
>>> 
>> 
>> That is an alternate possibility, though that number seems awfully big. What are the general guidelines for trade-offs like these?
>> 
> I guess there's stack space to consider. However, if it's not an issue, it's probably better to use the constant size. But I'll leave it up to you. 262144 bytes is pretty big…
> 

Just talked to Jakob, he agrees that that is way too much stack space to use.


> -bw
> 
> 





More information about the llvm-commits mailing list