<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">For opt and llc you can use:</div><div class=""><br class=""></div><div class=""><div class="">  --pass-remarks-filter=<regex>                                        - Only record optimization remarks from passes whose names match the given regular expression</div><div class="">  --pass-remarks-format=<format>                                       - The format used for serializing remarks (default: YAML)</div><div class="">  --pass-remarks-output=<filename>                                     - Output filename for pass remarks</div><div class=""><br class=""></div><div class="">Cheers,</div><div class=""><br class=""></div><div class="">— Francis</div><div><br class=""><blockquote type="cite" class=""><div class="">On Apr 8, 2020, at 4:04 PM, Stefanos Baziotis via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi Nethish,<br class=""><br class="">I recently learned about -print-after-all. This will print the IR after each pass. This is not exactly what you want but in the meantime it may help.<br class=""><br class="">Best,<br class="">Stefanos</div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Στις Πέμ, 9 Απρ 2020 στις 4:22 π.μ., ο/η nethish via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> έγραψε:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class="">Is there any way to find if a optimization pass has passed in opt?<div class="">In clang -fsave-optimzization-record would tell if particular optimization pass has applied or failed.</div><div class="">Is there similar functionality in opt?</div><div class=""><br class=""></div><div class="">Regards,</div><div class="">Nethish.</div><div class=""></div></div>
_______________________________________________<br class="">
LLVM Developers mailing list<br class="">
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" class="">llvm-dev@lists.llvm.org</a><br class="">
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank" class="">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br class="">
</blockquote></div>
_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev<br class=""></div></blockquote></div><br class=""></div></body></html>