[PATCH] D145171: [FSAFDO] Improve FS discriminator encoding

Hongtao Yu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 8 15:58:06 PST 2023


hoy accepted this revision.
hoy added a comment.
This revision is now accepted and ready to land.

In D145171#4179269 <https://reviews.llvm.org/D145171#4179269>, @xur wrote:

> The performance for removing BBSize from discriminator hash is out: it shows a slightly gain on performance, like ~0.2% vs with BBsize in the hash. I will remove BBSize from the hash.

Good to know removing it helps perf. Can you please update the summary as well? LGTM otherwise.



================
Comment at: llvm/lib/CodeGen/MIRFSDiscriminator.cpp:153
+      if (!ImprovedFSDiscriminator)
+        DiscriminatorCurrPass += getCallStackHashV0(BB, I, DIL);
       DiscriminatorCurrPass &= BitMaskThisPass;
----------------
The callsite hash is being removed from the discriminator for V1. I guess the discriminator conflicts will be way less than V0?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D145171/new/

https://reviews.llvm.org/D145171



More information about the llvm-commits mailing list