[PATCH] D157061: [SampleProfile] Potential use after move in SampleProfileLoader::promoteMergeNotInlinedContextSamples
Lei Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 4 11:11:11 PDT 2023
wlei added inline comments.
================
Comment at: llvm/lib/Transforms/IPO/SampleProfile.cpp:1660-1663
+ if (ReportProfileStaleness || PersistProfileStaleness || SalvageStaleProfile)
+ MatchingManager =
+ std::make_unique<SampleProfileMatcher>(
+ const_cast<Module&>(*F.getParent()), *Reader, ProbeManager.get());
----------------
Curious why we need to reset the `SampleProfileMatcher`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157061/new/
https://reviews.llvm.org/D157061
More information about the llvm-commits
mailing list