[llvm] [SamplePGO] Support -salvage-stale-profile without probes too (PR #86116)

Krzysztof Pszeniczny via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 22 05:01:14 PDT 2024


================
@@ -2411,10 +2411,10 @@ void SampleProfileMatcher::runOnFunction(const Function &F) {
   if (ReportProfileStaleness || PersistProfileStaleness)
     recordCallsiteMatchStates(F, IRAnchors, ProfileAnchors, nullptr);
 
-  // Run profile matching for checksum mismatched profile, currently only
-  // support for pseudo-probe.
-  if (SalvageStaleProfile && FunctionSamples::ProfileIsProbeBased &&
-      !ProbeManager->profileIsValid(F, *FSFlattened)) {
+  // Run profile matching for checksum mismatched profile. For probe-based
----------------
amharc wrote:

Done.

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


More information about the llvm-commits mailing list