Skip to content

Commit

Permalink
Remove unused variable (llvm#88223)
Browse files Browse the repository at this point in the history
fix the CI
  • Loading branch information
wlei-llvm committed Apr 10, 2024
1 parent 44c79da commit 1aceee7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,9 @@ template <> struct IRTraits<BasicBlock> {
// SampleProfileProber.
class PseudoProbeManager {
DenseMap<uint64_t, PseudoProbeDescriptor> GUIDToProbeDescMap;
const ThinOrFullLTOPhase LTOPhase;

public:
PseudoProbeManager(const Module &M,
ThinOrFullLTOPhase LTOPhase = ThinOrFullLTOPhase::None)
: LTOPhase(LTOPhase) {
PseudoProbeManager(const Module &M) {
if (NamedMDNode *FuncInfo =
M.getNamedMetadata(PseudoProbeDescMetadataName)) {
for (const auto *Operand : FuncInfo->operands()) {
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/IPO/SampleProfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2059,7 +2059,7 @@ bool SampleProfileLoader::doInitialization(Module &M,

// Load pseudo probe descriptors for probe-based function samples.
if (Reader->profileIsProbeBased()) {
ProbeManager = std::make_unique<PseudoProbeManager>(M, LTOPhase);
ProbeManager = std::make_unique<PseudoProbeManager>(M);
if (!ProbeManager->moduleIsProbed(M)) {
const char *Msg =
"Pseudo-probe-based profile requires SampleProfileProbePass";
Expand Down

0 comments on commit 1aceee7

Please sign in to comment.