[all-commits] [llvm/llvm-project] 5fdaaf: [SampleFDO] Flow Sensitive Sample FDO (FSAFDO) pro...
xur-llvm via All-commits
all-commits at lists.llvm.org
Wed Aug 18 18:44:52 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5fdaaf7fd8f35ac9c9de50a45b09e29c7b0d48c4
https://github.com/llvm/llvm-project/commit/5fdaaf7fd8f35ac9c9de50a45b09e29c7b0d48c4
Author: Rong Xu <xur at google.com>
Date: 2021-08-18 (Wed, 18 Aug 2021)
Changed paths:
M clang/lib/CodeGen/BackendUtil.cpp
A llvm/include/llvm/CodeGen/MIRSampleProfile.h
M llvm/include/llvm/CodeGen/MachineDominators.h
M llvm/include/llvm/CodeGen/MachineOptimizationRemarkEmitter.h
M llvm/include/llvm/CodeGen/Passes.h
M llvm/include/llvm/IR/DebugInfoMetadata.h
M llvm/include/llvm/InitializePasses.h
M llvm/include/llvm/Passes/PassBuilder.h
A llvm/include/llvm/Support/PGOOptions.h
M llvm/include/llvm/Target/TargetMachine.h
M llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h
M llvm/lib/CodeGen/CMakeLists.txt
A llvm/lib/CodeGen/MIRSampleProfile.cpp
M llvm/lib/CodeGen/TargetPassConfig.cpp
M llvm/lib/LTO/LTOBackend.cpp
M llvm/lib/Transforms/IPO/SampleProfile.cpp
A llvm/test/CodeGen/X86/Inputs/fsloader.afdo
M llvm/test/CodeGen/X86/fsafdo_test2.ll
M llvm/tools/opt/NewPMDriver.cpp
Log Message:
-----------
[SampleFDO] Flow Sensitive Sample FDO (FSAFDO) profile loader
This patch implements Flow Sensitive Sample FDO (FSAFDO) profile
loader. We have two profile loaders for FS profile,
one before RegAlloc and one before BlockPlacement.
To enable it, when -fprofile-sample-use=<profile> is specified,
add "-enable-fs-discriminator=true \
-disable-ra-fsprofile-loader=false \
-disable-layout-fsprofile-loader=false"
to turn on the FS profile loaders.
Differential Revision: https://reviews.llvm.org/D107878
More information about the All-commits
mailing list