<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 21, 2021 at 11:11 AM Wenlei He via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</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">wenlei added inline comments.<br>
<br>
<br>
================<br>
Comment at: llvm/lib/CodeGen/TargetPassConfig.cpp:1468<br>
+    addPass(createMIRAddFSDiscriminatorsPass(<br>
+        sampleprof::FSDiscriminatorPass::Pass1));<br>
   if (addPass(&MachineBlockPlacementID)) {<br>
----------------<br>
wenlei wrote:<br>
> Wondering once we finalize the spots for adding FS discriminators, do we want to replace Pass1, Pass2.. to say BBPlacementDisc, etc. eventually<br>
An extra profile loader pass is still to be added here coupled with the FS disc pass?</blockquote><div>Yes, if we want to use the updated profile right after the pass.</div><div>If we don't add the FS profie loader pass, the discrimnators in this pass will be merged into the next FS profiel loader pass. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <br>
<br>
<br>
CHANGES SINCE LAST ACTION<br>
  <a href="https://reviews.llvm.org/D104579/new/" rel="noreferrer" target="_blank">https://reviews.llvm.org/D104579/new/</a><br>
<br>
<a href="https://reviews.llvm.org/D104579" rel="noreferrer" target="_blank">https://reviews.llvm.org/D104579</a><br>
<br>
</blockquote></div></div>