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

Joerg Sonnenberger via llvm-dev llvm-dev at lists.llvm.org
Fri Sep 8 06:00:07 PDT 2017

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?


More information about the llvm-dev mailing list