<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Hello,<div><br></div><div>You might be looking for optimization remarks.</div><div><br></div><div>You should take a look at the -<font color="#000000" style="text-decoration: none; text-align: justify; caret-color: rgb(0, 0, 0); background-color: rgba(255, 255, 255, 0);"><a class="reference internal" href="https://clang.llvm.org/docs/UsersManual.html#opt-fsave-optimization-record" style="text-decoration: none; text-align: justify; caret-color: rgb(0, 0, 0); background-color: rgba(255, 255, 255, 0);">fsave-optimization-record</a> and -Rpass* flags.</font></div><div><div style="text-align: justify;"><br></div><div style="text-align: justify;">Cheers,</div><br><div id="AppleMailSignature" dir="ltr">-- <div>Francis</div></div><div dir="ltr"><br>On 19 Nov 2018, at 04:14, Bekket McClane via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br><br></div><blockquote type="cite"><div dir="ltr"><span></span><br><span></span><br><blockquote type="cite"><span>On Nov 17, 2018, at 8:20 AM, Pradeep Kumar via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Dear LLVM community,</span><br></blockquote><blockquote type="cite"><span>   How to find out which optimization passes have been performed and which passes have failed?</span><br></blockquote><span></span><br><span>First please define “failed”. </span><br><span>If you mean “crash”, there will be a stack dump anyway.</span><br><span>If you mean failed to optimize the code(into better code for example), the opt option “-print-after-all” might help you, it would print the result IR after each optimization passes.</span><br><span></span><br><span>Regarding which optimization do clang run, clang option “-mllvm -debug-pass=Arguments” might be the thing you’re looking for</span><br><span></span><br><span>Bests,</span><br><span>Bekket</span><br><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Regards,</span><br></blockquote><blockquote type="cite"><span>Pradeep Kumar</span><br></blockquote><blockquote type="cite"><span>_______________________________________________</span><br></blockquote><blockquote type="cite"><span>LLVM Developers mailing list</span><br></blockquote><blockquote type="cite"><span><a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a></span><br></blockquote><blockquote type="cite"><span><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a></span><br></blockquote><span></span><br><span>_______________________________________________</span><br><span>LLVM Developers mailing list</span><br><span><a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a></span><br><span><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a></span><br></div></blockquote></div></body></html>