<div dir="ltr"><div>Hello,</div><div>I want to perform optimizations available in opt on already optimized IR (via O1,O2,O3).</div><div>when I used O3 with opt, i get different performance as compared to clang -O3.</div><div><br></div><div>So, now i m first optimizing IR with clang O3 then using opt available optimizations as follows;</div><div><br></div><div><br></div><div>$LLVM_BIN/opt -O3  wc-O3.ll -S -o wc-O3-op.ll</div><div>$LLVM_BIN/opt -disable-loop-unrolling  wc-O3-op.ll -S -o wc-O3-op2.ll</div><div><br></div><div>Is this the right approach?</div><div><br></div><div>Please help.</div><div><br></div><div>Thank You</div><div>Regards<br></div></div>