[LLVMdev] Disable memset synthesization

Krzysztof Parzyszek kparzysz at codeaurora.org
Tue Jul 30 11:01:46 PDT 2013


On 7/30/2013 12:55 PM, Bin Tzeng wrote:
> Hi all,
>
> LLVM is smart that it can synthesize llvm.memset, llvm.memcpy etc. from
> loops, which can be lowered into calls to memset, memcpy and so on. Is
> there an option that can disable this optimization? For some cases, I do
> not want the code to depend on libc.

You can use -fno-builtin, if that suits your needs.

-K

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, 
hosted by The Linux Foundation



More information about the llvm-dev mailing list