[PATCH] D132601: [llvm-profdata] Improve profile supplementation
Rong Xu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 24 13:36:23 PDT 2022
xur created this revision.
xur added reviewers: davidxl, tmsriram.
Herald added subscribers: Enna1, wenlei, hiraditya, kristof.beyls.
Herald added a project: All.
xur requested review of this revision.
Herald added a project: LLVM.
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.
https://reviews.llvm.org/D132601
Files:
llvm/lib/ProfileData/ProfileSummaryBuilder.cpp
llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
llvm/test/Transforms/PGOProfile/Inputs/sample-profile-hot.proftext
llvm/test/Transforms/PGOProfile/Inputs/sample-profile-warm.proftext
llvm/test/Transforms/PGOProfile/Inputs/sample-profile.proftext
llvm/test/Transforms/PGOProfile/Inputs/suppl-profile.proftext
llvm/test/Transforms/PGOProfile/suppl-profile.ll
llvm/tools/llvm-profdata/llvm-profdata.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132601.455350.patch
Type: text/x-patch
Size: 11153 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220824/e916a5c9/attachment.bin>
More information about the llvm-commits
mailing list