<div dir="ltr"><div><div>Hi Justin,<br><br></div>I've been searching the mailing list and the web for discussion of the frontend instrumentation profiling.  Is there some sort of a design document or thread where it was discussed?  I'm curious why it was implemented in the frontend instead of a pass on the IR.<br>

<br></div><div>Thanks,<br></div>Jeremy<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 9, 2014 at 2:20 PM, Justin Bogner <span dir="ltr"><<a href="mailto:mail@justinbogner.com" target="_blank">mail@justinbogner.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">Jeremy Salwen <<a href="mailto:jeremysalwen@gmail.com">jeremysalwen@gmail.com</a>> writes:<br>


> I'm wondering as to the status of control flow profiling in llvm.  From what I<br>
> can gather there was an old system (using opt -insert-edge-profiling and the<br>
> like)  which was removed in this commit <a href="http://llvm.org/viewvc/llvm-project?view=" target="_blank">llvm.org/viewvc/llvm-project?view=</a><br>
> revision&revision=191835 . The commit message mentions "modern PGO efforts",<br>
> but I can't find anything in the source tree or documentation. Who is working<br>
> on the newer efforts and what is their status? If there's work that still<br>
> needs to be done, I'd be happy to help out in a serious way.<br>
<br>
</div></div>The mention of "modern PGO efforts" is about two things:<br>
<br>
- Sampling profilers, as documented in<br>
  <a href="http://clang.llvm.org/docs/UsersManual.html#using-sampling-profilers-for-optimization" target="_blank">http://clang.llvm.org/docs/UsersManual.html#using-sampling-profilers-for-optimization</a><br>
<br>
- Frontend instrumentation profiling. This really isn't documented at<br>
  all yet, but it consists of the -fprofile-instr-generate and<br>
  -fprofile-instr-use flags, and the llvm-profdata tool. I'll add some<br>
  notes to the user guide this week - sorry that I haven't gotten to it<br>
  sooner.<br>
</blockquote></div><br></div>