[all-commits] [llvm/llvm-project] 8c8ec1: [SampleFDO] Add profile remapping support for prof...
llvm-git-migration via All-commits
all-commits at lists.llvm.org
Fri Oct 18 15:34:07 PDT 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 8c8ec1f6868bd0f96801fabc55ea395d9d171f06
https://github.com/llvm/llvm-project/commit/8c8ec1f6868bd0f96801fabc55ea395d9d171f06
Author: Wei Mi <wmi at google.com>
Date: 2019-10-18 (Fri, 18 Oct 2019)
Changed paths:
M llvm/include/llvm/ProfileData/SampleProfReader.h
M llvm/lib/ProfileData/SampleProfReader.cpp
M llvm/lib/Transforms/IPO/SampleProfile.cpp
M llvm/test/Transforms/SampleProfile/remap.ll
M llvm/unittests/ProfileData/SampleProfTest.cpp
Log Message:
-----------
[SampleFDO] Add profile remapping support for profile on-demand loading used
by ExtBinary format profile
Profile on-demand loading was added for ExtBinary format profile in rL374233,
but currently profile on-demand loading doesn't work well with profile
remapping. The patch adds the support.
Suppose a function in the current module has outline instance in the profile.
The function name in the module is different from the name of the outline
instance, but remapper knows the two names are equal. When loading profile
on-demand, the outline instance has to be loaded with remapper's help.
At the same time SampleProfileReaderItaniumRemapper is changed from a proxy
of SampleProfileReader to a helper member in SampleProfileReader.
Differential Revision: https://reviews.llvm.org/D68901
llvm-svn: 375295
More information about the All-commits
mailing list