[PATCH] D79485: [BPI] Improve static heuristics for "cold" paths.

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 22 14:51:56 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:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79485/new/

https://reviews.llvm.org/D79485





More information about the llvm-commits mailing list