[llvm-dev] disable optimizarions
Mehdi AMINI via llvm-dev
llvm-dev at lists.llvm.org
Wed Jul 12 22:03:30 PDT 2017
Something like -fno-builtin may be what you're looking for.
2017-07-10 9:37 GMT-07:00 Anastasiya Ruzhanskaya via llvm-dev <
llvm-dev at lists.llvm.org>:
> when I put O0, there are also intrinsics. How to disable them?
> 2017-07-10 18:32 GMT+02:00 Anastasiya Ruzhanskaya <
> anastasiya.ruzhanskaya at frtk.ru>:
>> I have already asked how to receive unoptimized IR. This way:
>> clang -S -emit-llvm -O3 -mllvm -disable-llvm-optzns memset.c -o memset.s
>> I have noticed, that in any case, when I use O1, O2, O3 and disable
>> optimizations, I still get llvm intrinsics functions inserted.
>> when I put O0, I have no intrinsics, but have noopt attribute. Is there a
>> way to receive purely unoptimizaed IR without any intrinsics?
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev