[llvm-dev] IR Optimization via Opt after clang

hameeza ahmed via llvm-dev llvm-dev at lists.llvm.org
Tue Aug 13 14:56:37 PDT 2019

I want to perform optimizations available in opt on already optimized IR
(via O1,O2,O3).
when I used O3 with opt, i get different performance as compared to clang

So, now i m first optimizing IR with clang O3 then using opt available
optimizations as follows;

$LLVM_BIN/opt -O3  wc-O3.ll -S -o wc-O3-op.ll
$LLVM_BIN/opt -disable-loop-unrolling  wc-O3-op.ll -S -o wc-O3-op2.ll

Is this the right approach?

Please help.

Thank You
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190814/b65fdf49/attachment.html>

More information about the llvm-dev mailing list