<p dir="ltr">You are right. I have this stmt here to avoid preinliner for non PGO compilation. Now the preinliner is gone. I should have removed it. Thanks for catching this. Will fix.</p>
<p dir="ltr">Rong</p>
<div class="gmail_quote">On Jan 20, 2016 6:15 PM, "Sean Silva" <<a href="mailto:chisophugis@gmail.com">chisophugis@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">silvas added inline comments.<br>
<br>
================<br>
Comment at: lib/Transforms/IPO/PassManagerBuilder.cpp:204<br>
@@ +203,3 @@<br>
+void PassManagerBuilder::addPGOInstrPasses(legacy::PassManagerBase &MPM) {<br>
+  if (PGOInstrGen.empty() && PGOInstrUse.empty())<br>
+    return;<br>
----------------<br>
One tiny nit I just saw: this check is redundant. The function does nothing if they are both empty because they are checked below individually.<br>
<br>
<br>
<a href="http://reviews.llvm.org/D15828" rel="noreferrer" target="_blank">http://reviews.llvm.org/D15828</a><br>
<br>
<br>
<br>
</blockquote></div>