[PseudoProbe] Only emit discriminstor in FS-AFDO mode.
authorHongtao Yu <hoy@fb.com>
Mon, 15 May 2023 23:33:39 +0000 (16:33 -0700)
committerHongtao Yu <hoy@fb.com>
Wed, 17 May 2023 04:35:17 +0000 (21:35 -0700)
commit456eb4b5bffe42d109c09b8706d4eeda8baa1f9a
tree16a4b765f61b87fb62b210885285ff843722111e
parentb27f14d920e17d0216bba1dd1d051137627ab356
[PseudoProbe] Only emit discriminstor in FS-AFDO mode.

Despite previous effort {D148569} to avoid screwing up existing disrminator field, I'm still seeing some call probes getting a non-zero discriminator eventually in non-FS mode. It could be related to callsite merge. While they are investigated I'm disabling discriminator emission for non-FS mode. This avoids breaking the compatiblity with older tools like llvm-profgen and bolt.

Reviewed By: wenlei

Differential Revision: https://reviews.llvm.org/D150625
llvm/lib/CodeGen/AsmPrinter/PseudoProbePrinter.cpp