[llvm-commits] Cost Table Draft

Renato Golin Linaro renato.golin at linaro.org
Wed Jan 16 10:33:35 PST 2013


On 16 January 2013 18:22, Benjamin Kramer <benny.kra at gmail.com> wrote:

> thread-safety issues aside (I think most c++ implementation implement some
> kind of safeguard for static initializers), the std::vectors in this patch
> add static destructors to the code. We try to avoid those in LLVM, can't
> you just keep them in static constant arrays and only wrap the search on it
> with another object?
>

Hi Ben,

That's a good point. I tried not to use vectors, but I'd have to use all
sorts of tricks to keep variable length arrays without increasing in either
template code or run time delays, though I haven't thought about the static
destructors.

I'll have another look. ;)

cheers,
--renato
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130116/fd5a6f38/attachment.html>


More information about the llvm-commits mailing list