<div dir="ltr">Unfortunately,  -Rpass options are not currently passed to the linker invoked when you do the LTO link. To workaround, pass the internal LLVM option which are -pass-remarks* (e.g. -pass-remarks=. -pass-remarks-missed=. etc). How you do this will depend on the linker you are using. If gold, then when you do the LTO link pass via -plugin-opt: -Wl,-plugin-opt,-pass-remarks=<wbr>. for example. If using lld, I believe it would be -Wl,-mllvm -Wl,-pass-remarks=.  (i.e. each internal LLVM option needs to be preceeded by an -mllvm on the link link).<div><br></div><div>Teresa</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 18, 2017 at 3:57 AM, Denis Bakhvalov via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I'm using clang frontend.<br>
I'm interested in some particular hot loop in my code and I emit a<br>
report from vectorizer optimizations passes.<br>
I receive nice output if passing -Rpass* flags as long as I'm building<br>
without LTO?<br>
But with -flto it just prints nothing.<br>
Is there a way to emit opt reports when using LTO?<br>
<br>
For now I can only approximate about whether my the loop will be<br>
vectorized. I remove -flto and check opt reports. But as I understand,<br>
decision about loop vectorization may be changed on LTO stage, so it<br>
is only an approximation.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Best regards,<br>
Denis.<br>
______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><span style="font-family:Times;font-size:medium"><table cellspacing="0" cellpadding="0"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small"><td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Teresa Johnson |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Software Engineer |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:tejohnson@google.com" target="_blank">tejohnson@google.com</a> |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"> 408-460-2413</td></tr></tbody></table></span></div>
</div>