[llvm-dev] disable optimizarions
Anastasiya Ruzhanskaya via llvm-dev
llvm-dev at lists.llvm.org
Mon Jul 10 09:37:39 PDT 2017
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev