This is a follow up to D152399.
This CL adds a new discriminator pass. Also adds a new sample profile pass when MFS is enabled.
Also includes tests for both FSAFDO-MFS and FSADO pass config.
Paths 
  |  Differential  D152577  
Part 2 of  Fine tune MachineFunctionSplitPass (MFS) for FSAFDO. ClosedPublic Authored by shenhan on Jun 9 2023, 12:31 PM. 
Details Summary This is a follow up to D152399. This CL adds a new discriminator pass. Also adds a new sample profile pass when MFS is enabled. Also includes tests for both FSAFDO-MFS and FSADO pass config. 
Diff Detail 
 
Unit TestsFailed Event Timelineshenhan added a parent revision: D152399: [CodeGen] Fine tune MachineFunctionSplitPass (MFS) for FSAFDO. .Jun 9 2023, 12:32 PM 
 This revision is now accepted and ready to land.Jul 5 2023, 2:09 PM 
 
 
 This revision was landed with ongoing or failed builds.Jul 11 2023, 10:41 PM Closed by commit rG65ef4d43577d: [CodeGen] Part II of "Fine tune MachineFunctionSplitPass (MFS) for FSAFDO". (authored by shenhan).  ·  Explain Why This revision was automatically updated to reflect the committed changes. 
Revision Contents 
Diff 530050 llvm/lib/CodeGen/TargetPassConfig.cpp
 llvm/test/CodeGen/X86/load-sample-profile.ll
 
 llvm/test/CodeGen/X86/machine-function-splitter-fsafdo.ll
 
  | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Is this FSNoFinalDiscrim cl flag still used anywhere? Remove fs-no-final-discrim to cleanup?