[all-commits] [llvm/llvm-project] d7ef0c: [llvm-profdata] Improve profile supplementation
xur-llvm via All-commits
all-commits at lists.llvm.org
Mon Aug 29 16:58:05 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d7ef0c3970c238af40f3d184f900d20fd2308d7f
https://github.com/llvm/llvm-project/commit/d7ef0c3970c238af40f3d184f900d20fd2308d7f
Author: Rong Xu <xur at google.com>
Date: 2022-08-29 (Mon, 29 Aug 2022)
Changed paths:
M llvm/include/llvm/ProfileData/InstrProf.h
M llvm/lib/ProfileData/InstrProf.cpp
M llvm/lib/ProfileData/ProfileSummaryBuilder.cpp
M llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
A llvm/test/Transforms/PGOProfile/Inputs/sample-profile-hot.proftext
A llvm/test/Transforms/PGOProfile/Inputs/sample-profile-warm.proftext
R llvm/test/Transforms/PGOProfile/Inputs/sample-profile.proftext
M llvm/test/Transforms/PGOProfile/Inputs/suppl-profile.proftext
M llvm/test/Transforms/PGOProfile/suppl-profile.ll
M llvm/test/tools/llvm-profdata/Inputs/overflow-instr.proftext
A llvm/test/tools/llvm-profdata/Inputs/pseudo-count-hot.proftext
A llvm/test/tools/llvm-profdata/Inputs/pseudo-count-warm.proftext
M llvm/test/tools/llvm-profdata/overflow-instr.test
A llvm/test/tools/llvm-profdata/pseudo_count.test
M llvm/test/tools/llvm-profdata/suppl-instr-with-sample-static-func.test
M llvm/test/tools/llvm-profdata/suppl-instr-with-sample.test
M llvm/tools/llvm-profdata/llvm-profdata.cpp
M llvm/unittests/ProfileData/InstrProfTest.cpp
Log Message:
-----------
[llvm-profdata] Improve profile supplementation
Current implementation promotes a non-cold function in the SampleFDO profile
into a hot function in the FDO profile. This is too aggressive. This patch
promotes a hot functions in the SampleFDO profile into a hot function, and a
warm function in SampleFDO into a warm function in FDO.
Differential Revision: https://reviews.llvm.org/D132601
More information about the All-commits
mailing list