[llvm-dev] disable optimizarions

Anastasiya Ruzhanskaya via llvm-dev llvm-dev at lists.llvm.org
Mon Jul 10 09:32:58 PDT 2017

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...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170710/60f4ebbb/attachment.html>

More information about the llvm-dev mailing list