[llvm-dev] How to remove memcpy

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


On Sat, Oct 15, 2016 at 06:18:48PM -0500, Wolfgang McSneed wrote:
> No, there is no reason that can't be static. How do you recommend that I
> define them?

Just make them static const, so that a & b are effectively read-only
global variables. That way, the function doesn't have to reinitialize
them all the time.

Joerg


More information about the llvm-dev mailing list