Skip to content

Commit

Permalink
Use getCanonicalFnName for callee name
Browse files Browse the repository at this point in the history
  • Loading branch information
wlei-llvm committed Oct 27, 2022
1 parent 439209d commit 63c27c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/IPO/SampleProfile.cpp
Expand Up @@ -2077,7 +2077,7 @@ void SampleProfileMatcher::detectProfileMismatch(const Function &F,

StringRef CalleeName;
if (Function *Callee = CB->getCalledFunction())
CalleeName = Callee->getName();
CalleeName = FunctionSamples::getCanonicalFnName(Callee->getName());

const auto CTM = FS.findCallTargetMapAt(IRCallsite);
const auto CallsiteFS = FS.findFunctionSamplesMapAt(IRCallsite);
Expand Down

0 comments on commit 63c27c5

Please sign in to comment.