<div dir="ltr">Dear Vivek,<div>    Sorry, I couldn't reply to the same thread. I want to know which existing passes emit optimization remarks. Here passes refer to the Analysis and Transformation passes listed in <a href="http://llvm.org/docs/Passes.html">llvm.org/docs/Passes.html</a>. Also where can I find  more information on the internals of optimization remarks infrastructure?</div><div><br></div><div>Regards,</div><div>Pradeep</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 26, 2019 at 10:06 PM Pradeep Kumar <<a href="mailto:pradeepisro49@gmail.com">pradeepisro49@gmail.com</a>> wrote:<br></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">Dear llvm-dev community,<div>   I am trying to analyze the optimization remarks generated through clang using -fsave-optimization-remark with -O3.</div><div><br></div><div><div style="color:rgb(0,0,0);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";font-size:16px;line-height:22px;white-space:pre-wrap"><div>--- <span style="color:rgb(0,0,255)">!Analysis</span></div><div><span style="color:rgb(128,0,0)">Pass</span>:            <span style="color:rgb(0,0,255)">loop-vectorize</span></div><div><span style="color:rgb(128,0,0)">Name</span>:            <span style="color:rgb(0,0,255)">CFGNotUnderstood</span></div><div><span style="color:rgb(128,0,0)">DebugLoc</span>:        { <span style="color:rgb(128,0,0)">File</span>: <span style="color:rgb(0,0,255)">c-ray-mt.c</span>, <span style="color:rgb(128,0,0)">Line</span>: <span style="color:rgb(9,136,90)">177</span>, <span style="color:rgb(128,0,0)">Column</span>: <span style="color:rgb(9,136,90)">2</span> }</div><div><span style="color:rgb(128,0,0)">Function</span>:        <span style="color:rgb(0,0,255)">main</span></div><div><span style="color:rgb(128,0,0)">Args</span>:            </div><div>  - <span style="color:rgb(128,0,0)">String</span>:          <span style="color:rgb(0,0,255)">'loop not vectorized: '</span></div><div>  - <span style="color:rgb(128,0,0)">String</span>:          <span style="color:rgb(0,0,255)">loop control flow is not understood by vectorizer</span></div><div><span style="color:rgb(0,0,255)"><br></span></div><div><br></div><div><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small;white-space:normal">I tried to look for information about "loop vectorize pass" and other emitted pass in the official llvm passes documentaiton <a href="https://llvm.org/docs/Passes.html" target="_blank">here</a> but it is not there. Please let me know where to find information about passes emitted in the optimization report.</span></div><div><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small;white-space:normal"><br></span></div><div><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small;white-space:normal">Regards,</span></div><div><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small;white-space:normal">Pradeep</span></div></div></div></div>
</blockquote></div>