[llvm-branch-commits] [llvm] [BOLT] Hash-based function matching (PR #95821)

Amir Ayupov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Jun 21 11:26:28 PDT 2024


================
@@ -2982,6 +2983,9 @@ void RewriteInstance::selectFunctionsToProcess() {
     if (mustSkip(Function))
       return false;
 
+    if (opts::MatchingFunctionsWithHash)
+      return true;
----------------
aaupov wrote:

Since we're forcing the processing of all functions here to construct CFG and compute hashes, let's also mark functions without profile as ignored in Lite mode. 
This should happen after we assign profile, at the end of YAMLProfileReader::readProfile. Under the new option, go over all functions and check if the function has profile, if not, mark it ignored.

https://github.com/llvm/llvm-project/pull/95821


More information about the llvm-branch-commits mailing list