[PATCH] D81981: [PGO] Supplement PGO profile with Sample profile
David Li via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 22 14:53:47 PDT 2020
davidxl added a comment.
The PGOUse pass can choose not to annotate any branches with total weights == 0. Now the question becomes how do we tell PGOUse pass whether the entry should be set to 0 or leave it not set. There are two ways to do it (to signal it is not really cold, but unknown):
1. Remove the function from the indexed format profile;
2. set all counts to some sentinel value such as -1.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81981/new/
https://reviews.llvm.org/D81981
More information about the llvm-commits
mailing list