[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
Author: Wei Mi <wmi at google.com>
Date: 2019-10-18 (Fri, 18 Oct 2019)
[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
More information about the All-commits