[PATCH] D104579: [SampleFDO] Add Pass1 of MIRAddFSDiscriminatorsPass before Block-Placement

Hongtao Yu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 21 14:48:16 PDT 2021


hoy added inline comments.


================
Comment at: llvm/lib/CodeGen/TargetPassConfig.cpp:1468
+    addPass(createMIRAddFSDiscriminatorsPass(
+        sampleprof::FSDiscriminatorPass::Pass1));
   if (addPass(&MachineBlockPlacementID)) {
----------------
wenlei wrote:
> wenlei wrote:
> > Wondering once we finalize the spots for adding FS discriminators, do we want to replace Pass1, Pass2.. to say BBPlacementDisc, etc. eventually
> An extra profile loader pass is still to be added here coupled with the FS disc pass? 
`addBlockPlacement` is very close to `addPreEmitPass` in pass order. I'm wondering if we should use `FSDiscriminatorPass::Pass3`.


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

https://reviews.llvm.org/D104579



More information about the llvm-commits mailing list