[llvm-dev] How to remove memcpy

Wolfgang McSneed via llvm-dev llvm-dev at lists.llvm.org
Sat Oct 15 16:18:48 PDT 2016


No, there is no reason that can't be static. How do you recommend that I
define them?

THanks!

Kind Regards,

Wolf

On Sat, Oct 15, 2016 at 6:12 PM, Joerg Sonnenberger via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> On Sat, Oct 15, 2016 at 06:10:05PM -0500, Wolfgang McSneed wrote:
> > Thanks for your fast response! attached is the matrix_float.c file.
>
> Are you intentionally not using static (& const) arrays? The compiler has
> to use a copy to initialize a & b, given the size, it will use a memcpy
> from a read-only section for that.
>
> 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/20161015/1657adf4/attachment.html>


More information about the llvm-dev mailing list