[PATCH] D147456: [AutoFDO] Stale profile matching(part 1)
Wenlei He via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 5 12:33:11 PDT 2023
wenlei added a comment.
In D147456#4246749 <https://reviews.llvm.org/D147456#4246749>, @davidxl wrote:
> In D147456#4246695 <https://reviews.llvm.org/D147456#4246695>, @hoy wrote:
>
>> In D147456#4246648 <https://reviews.llvm.org/D147456#4246648>, @davidxl wrote:
>>
>>>
>>
>>
>>
>>> By the way, another way is to offline remapping --- basically 'correcting' the stale profile by mapping the old locations to the new locations and produce a refreshed profile. This is what we plan to do internally.
>>
>> This sounds interesting. By offline do you mean the profile generation time? Wondering how to get the new locations without building the new binary.
>
> Right -- the source revision information is available for any target in the build environment.
By doing the mapping during profile generation outside of compiler, you would need a new profile for each target source version. That seems less flexible comparing to doing the mapping in the compiler where the mapping is naturally built for the current source being compiled.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147456/new/
https://reviews.llvm.org/D147456
More information about the llvm-commits
mailing list