[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
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev