[PATCH] D102246: [SampleFDO] New hierarchical discriminator for Flow Sensitive SampleFDO
Hongtao Yu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 14 18:12:34 PDT 2021
hoy added inline comments.
================
Comment at: llvm/lib/CodeGen/MIRFSDiscriminator.cpp:67
+ using BBSet = DenseSet<const MachineBasicBlock *>;
+ using LocationDiscriminatorBBMap = DenseMap<LocationDiscriminator, BBSet>;
+ using LocationDiscriminatorCurrPassMap =
----------------
Nit: not sure if `std::unordered_multimap` can be a bit faster by not constructing a `BBSet` if most instructions are not duplicated.
================
Comment at: llvm/lib/CodeGen/TargetPassConfig.cpp:1181
+ if (EnableFSDiscriminator && !FSNoFinalDiscrim)
+ addPass(createMIRAddFSDiscriminatorsPass(PASS_LAST_DIS_BIT_BEG,
+ PASS_LAST_DIS_BIT_END));
----------------
Wondering why using `PASS_LAST_DIS_BIT_BEG` here. Will other bits be used in later patches?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102246/new/
https://reviews.llvm.org/D102246
More information about the llvm-commits
mailing list