[PATCH] D107878: [SampleFDO] Flow Sensitive Sample FDO (FSAFDO) profile loader

Rong Xu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 10 21:59:52 PDT 2021


xur created this revision.
xur added reviewers: wmi, wenlei, hoy.
Herald added subscribers: dexonsmith, pengfei, hiraditya, mgorny.
xur requested review of this revision.
Herald added a project: LLVM.

This patch implements Flow Sensitive Sample FDO (FSAFDO) profile loader.
We have two additional profile loaders for FS profile, one before RegAlloc and one before BlockPlacement.

"-enable-fs-discriminator=true" turns on the FS profile loaders, if sample-profile-use is specified.


https://reviews.llvm.org/D107878

Files:
  llvm/include/llvm/CodeGen/FlowSensitiveSampleProfile.h
  llvm/include/llvm/CodeGen/MachineDominators.h
  llvm/include/llvm/CodeGen/MachineOptimizationRemarkEmitter.h
  llvm/include/llvm/CodeGen/Passes.h
  llvm/include/llvm/IR/DebugInfoMetadata.h
  llvm/include/llvm/InitializePasses.h
  llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h
  llvm/lib/CodeGen/CMakeLists.txt
  llvm/lib/CodeGen/FlowSensitiveSampleProfile.cpp
  llvm/lib/CodeGen/TargetPassConfig.cpp
  llvm/lib/Passes/PassBuilder.cpp
  llvm/lib/ProfileData/SampleProf.cpp
  llvm/test/CodeGen/X86/Inputs/fsloader.afdo
  llvm/test/CodeGen/X86/fsafdo_test1.ll
  llvm/test/CodeGen/X86/fsafdo_test2.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107878.365656.patch
Type: text/x-patch
Size: 36441 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210811/e6514a5d/attachment.bin>


More information about the llvm-commits mailing list