<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 12:25 PM 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/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h:284<br>
+ if (EnableFSDiscriminator)<br>
+ Discriminator = DIL->getDiscriminator();<br>
+ else<br>
----------------<br>
wenlei wrote:<br>
> This seems to be the most important change in the patch? :) <br>
Pasting email reply from Rong: <br>
<br>
> No. It's actually NFC in this patch. This is because this code is currently only called by ProfileLoader. In ProfileLoader, getDiscriminator() is the same as getBaseDiscriminator() because only base discriminator is used.<br>
> This only matters for FS-ProfileLoader. <br>
<br>
Just to make sure I understand this correctly, this path will be shared between base/current profile loader and fs-profile loader, right?</blockquote><div>Yes. That is correct.</div><div>This is NFC for base profile_loader, but this is not NFC for fs-profile.</div><div>Sorry if I confused you about this.</div><div> </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/D104584/new/" rel="noreferrer" target="_blank">https://reviews.llvm.org/D104584/new/</a><br>
<br>
<a href="https://reviews.llvm.org/D104584" rel="noreferrer" target="_blank">https://reviews.llvm.org/D104584</a><br>
<br>
</blockquote></div></div>