[llvm-dev] How to remove memcpy

Joerg Sonnenberger via llvm-dev llvm-dev at lists.llvm.org
Sat Oct 15 16:12:26 PDT 2016


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


More information about the llvm-dev mailing list