Anastasiya Ruzhanskaya via llvm-dev
2017-Jul-10 16:32 UTC
[llvm-dev] disable optimizarions
Hello, 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>
Anastasiya Ruzhanskaya via llvm-dev
2017-Jul-10 16:37 UTC
[llvm-dev] disable optimizarions
Sorry, 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>:> Hello, > 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/892a01cc/attachment.html>
Hi, Something like -fno-builtin may be what you're looking for. Best, -- Mehdi 2017-07-10 9:37 GMT-07:00 Anastasiya Ruzhanskaya via llvm-dev < llvm-dev at lists.llvm.org>:> Sorry, > 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>: > >> Hello, >> 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 > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170712/442150b1/attachment.html>