llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[LLVM][LLD][LTO] Profile Guided Layout (--call-graph-profile-sort) does not work with FullLTO

Open bd1976bris opened this issue 4 years ago • 2 comments

The CGProfilePass is not run as part of compiling the LTO object file with FullLTO, as a consequence the .llvm.call-graph-profile section is not emitted into the LTO object file and profile guided layout (--call-graph-profile-sort) does not occur.

Profile guided layout does currently work with both ThinLTO and with normal compilation as the CGProfilePass is run appropriately for both.

bd1976bris avatar Jun 23 '22 16:06 bd1976bris

Review for potential fix: https://reviews.llvm.org/D128452

bd1976bris avatar Jun 23 '22 16:06 bd1976bris

Try avoiding uncommon abbreviations like PGL, FLTO, and TLTO :)

MaskRay avatar Jun 29 '22 20:06 MaskRay