llvm::SampleProfileMatcher

Fuzzy-matches a sample profile to IR when locations or names have drifted.

Synopsis

Declared in <llvm/Transforms/IPO/SampleProfileMatcher.h>

class SampleProfileMatcher;

Description

Recovers AutoFDO and CSSPGO samples after code changes by aligning callsite anchors and, optionally, matching unmatched IR functions to unused profile entries via the call graph.

Member Functions

NameDescription
SampleProfileMatcher [constructor]Construct a matcher for M using profiles from Reader.
clearMatchingData Release temporary matching tables after matching is complete.
runOnModule Match functions in the module against the sample profile.