[PATCH] D79590: [lld] Add a new section ".text.unknown" for funtions with unknown hotness info especially in sampleFDO
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 7 11:20:28 PDT 2020
MaskRay added a comment.
> Add a new section ".text.unknown"
Add a new *output* section
================
Comment at: lld/ELF/Writer.cpp:131
+ // ".text.unknown" means the hotness of the section is unknown. When
+ // SampleFDO is used, if function doesn't have sample, it could be very
+ // cold or it could be new function never being sampled. Those functions
----------------
a function
================
Comment at: lld/ELF/Writer.cpp:132
+ // SampleFDO is used, if function doesn't have sample, it could be very
+ // cold or it could be new function never being sampled. Those functions
+ // will be kept in the ".text.unknown" section.
----------------
a new function
Repository:
rLLD LLVM Linker
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79590/new/
https://reviews.llvm.org/D79590
More information about the llvm-commits
mailing list