[llvm-dev] Performance of large llvm::ConstantDataArrays

Chris Lovett via llvm-dev llvm-dev at lists.llvm.org
Fri Sep 8 16:30:49 PDT 2017

Thanks, I've considered that, but I am using LLVM to target multiple
platforms, so if I do that I'm worried I need to consider the
cross-platform floating point memory layouts ... unless LLVM can help me
with creating the correct binary blob...

On Fri, Sep 8, 2017 at 6:00 AM, Joerg Sonnenberger via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> On Thu, Sep 07, 2017 at 11:06:58PM -0700, Chris Lovett via llvm-dev wrote:
> > I'm running into some pretty bad performance in llc.exe when compiling
> some
> > large neural networks into code that contains some very
> > large llvm::ConstantDataArrays, some are { size=102,760,448 }. There's a
> > small about of actual code for processing the network, but the assembly
> is
> > mostly global data.
> Have you considered just writing out binary data directly and using i.e.
> .incbin for including it?
> Joerg
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170908/6bc2a86b/attachment.html>

More information about the llvm-dev mailing list