<div dir="ltr">I just sent out the patch that puts PGOOptions to TargetMachine before getting this message.<div>So EnableFSDiscriminator is not included.</div><div><br></div><div>If we want to include EnableFSDiscrinator there, we'd better to promote this to an user visible option (as of now, it's an internal option).</div><div>I was thinking this option only serves in the transitional phrase. In the long term, we will make it default and get rid of it.</div><div>So, I did not add it as a user level flag. </div><div><br></div><div>If people think we should keep it, i'd happy to change it to a user level flag and include it in PGOOptions.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 18, 2021 at 9:28 AM Hongtao Yu 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">hoy added inline comments.<br>
<br>
<br>
================<br>
Comment at: llvm/include/llvm/Target/TargetMachine.h:113-116<br>
+  /// FSProfile file name.<br>
+  std::string FSProfileFile = "";<br>
+  /// FSProifle remapping file name.<br>
+  std::string FSRemappingFile = "";<br>
----------------<br>
xur wrote:<br>
> wmi wrote:<br>
> > Feel it is better to move the whole PGOOpt here. Similar as OptLevel above, PGOOpt shows us the major PGO related configuration and it will be available for the MIR passes after it is included in TargetMachine class. <br>
> I'm OK with that. But for now, only these two fields are used in MIR (at lease for this patch).<br>
> I will make the change if I don't hear objection.<br>
Moving `PGOOpt` here sounds good to time. It may be extended for MIR profiling use in the future. Maybe the `EnableFSDiscriminator` switch can be added into `PGOOpt` as well?<br>
<br>
<br>
CHANGES SINCE LAST ACTION<br>
  <a href="https://reviews.llvm.org/D107878/new/" rel="noreferrer" target="_blank">https://reviews.llvm.org/D107878/new/</a><br>
<br>
<a href="https://reviews.llvm.org/D107878" rel="noreferrer" target="_blank">https://reviews.llvm.org/D107878</a><br>
<br>
</blockquote></div>