[PATCH] D54819: [SampleFDO] Skip profile reading when flatten profile is used in ThinLTO postlink phase
Wei Mi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 21 16:14:59 PST 2018
wmi created this revision.
wmi added reviewers: danielcdh, tejohnson.
Herald added subscribers: dexonsmith, inglorion, mehdi_amini.
If the sample profile has no inlining hierachy information included, we call the sample profile is flatten. For flatten profile, in ThinLTO postlink phase, SampleProfileLoader's hot function inlining and profile annotation will do nothing, so it is better to save the effort to read in the profile (pass running will be skipped too because no profile is available). It is helpful for reducing compile time when the flatten profile is huge.
Repository:
rL LLVM
https://reviews.llvm.org/D54819
Files:
include/llvm/Transforms/IPO/SampleProfile.h
lib/Passes/PassBuilder.cpp
lib/Transforms/IPO/SampleProfile.cpp
test/Transforms/SampleProfile/Inputs/flatten.prof
test/Transforms/SampleProfile/flatten.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54819.174994.patch
Type: text/x-patch
Size: 8024 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181122/a5aeadf4/attachment.bin>
More information about the llvm-commits
mailing list