================ @@ -2982,6 +2981,9 @@ void RewriteInstance::selectFunctionsToProcess() { if (mustSkip(Function)) return false; + if (opts::MatchProfileWithFunctionHash) + return true; + ---------------- shawbyoung wrote: You're right - I'll move it there https://github.com/llvm/llvm-project/pull/96572