<div dir="ltr"><div dir="ltr"><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Dear Vivek,<br>
    Sorry, I couldn't reply to the same thread. I want to know which<br>
existing passes emit optimization remarks. Here passes refer to the<br>
Analysis and Transformation passes listed in <a href="http://llvm.org/docs/Passes.html" rel="noreferrer" target="_blank">llvm.org/docs/Passes.html</a>.<br></blockquote><div>You can create list by your own, just grep "OptimizationRemarkEmitter" <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Also where can I find  more information on the internals of optimization<br>
remarks infrastructure?<br></blockquote><div>Here is old video <a href="https://www.youtube.com/watch?v=qq0q1hfzidg&feature=youtu.be">https://www.youtube.com/watch?v=qq0q1hfzidg&feature=youtu.be</a> on Remarks</div><div>if you want to understand code structure please study <a href="https://reviews.llvm.org/D33514#change-TSuFB7f6zlkz">https://reviews.llvm.org/D33514#change-TSuFB7f6zlkz</a></div><div>and ask specific doubt on here or in personal thread.</div><div>-Vivek<br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Regards,<br>
Pradeep<br>
<br>
On Fri, Jul 26, 2019 at 10:06 PM Pradeep Kumar <<a href="mailto:pradeepisro49@gmail.com" target="_blank">pradeepisro49@gmail.com</a>><br>
wrote:<br>
<br>
> Dear llvm-dev community,<br>
>    I am trying to analyze the optimization remarks generated through clang<br>
> using -fsave-optimization-remark with -O3.<br>
><br>
> --- !Analysis<br>
> Pass: loop-vectorize<br>
> Name: CFGNotUnderstood<br>
> DebugLoc: { File: c-ray-mt.c, Line: 177, Column: 2 }<br>
> Function: main<br>
> Args:<br>
> - String: 'loop not vectorized: '<br>
> - String: loop control flow is not understood by vectorizer<br>
><br>
><br>
> I tried to look for information about "loop vectorize pass" and other<br>
> emitted pass in the official llvm passes documentaiton here<br>
> <<a href="https://llvm.org/docs/Passes.html" rel="noreferrer" target="_blank">https://llvm.org/docs/Passes.html</a>> but it is not there. Please let me<br>
> know where to find information about passes emitted in the optimization<br>
> report.<br>
><br>
> Regards,<br>
> Pradeep<br>
><br><br>
</blockquote></div></div>