From 55a24738302eb9bb5bf458220deb20ddef60ce51 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 4 Sep 2024 13:04:36 +0200 Subject: [CtxProf] Replace include with forward declaration (NFC) This header is fairly expensive. Forward declare PGOContextualProfile instead. --- llvm/lib/Transforms/Utils/InlineFunction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp') diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp index 799ef3a..2e05fa8 100644 --- a/llvm/lib/Transforms/Utils/InlineFunction.cpp +++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp @@ -2142,7 +2142,7 @@ inlineRetainOrClaimRVCalls(CallBase &CB, objcarc::ARCInstKind RVCallKind, // it's not worth updating those. static const std::pair, std::vector> remapIndices(Function &Caller, BasicBlock *StartBB, - CtxProfAnalysis::Result &CtxProf, uint32_t CalleeCounters, + PGOContextualProfile &CtxProf, uint32_t CalleeCounters, uint32_t CalleeCallsites) { // We'll allocate a new ID to imported callsite counters and callsites. We're // using -1 to indicate a counter we delete. Most likely the entry ID, for @@ -2258,7 +2258,7 @@ remapIndices(Function &Caller, BasicBlock *StartBB, // copying over the data of the callee, **intentionally without any value // scaling**, and copying over the callees of the inlined callee. llvm::InlineResult llvm::InlineFunction(CallBase &CB, InlineFunctionInfo &IFI, - CtxProfAnalysis::Result &CtxProf, + PGOContextualProfile &CtxProf, bool MergeAttributes, AAResults *CalleeAAR, bool InsertLifetime, -- cgit v1.1