diff options
author | Nikita Popov <npopov@redhat.com> | 2024-09-04 13:04:36 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2024-09-04 13:05:09 +0200 |
commit | 55a24738302eb9bb5bf458220deb20ddef60ce51 (patch) | |
tree | acb8088299cd2f851861a9aaf26411b57d0ac7f0 /llvm/lib/Transforms/Utils/InlineFunction.cpp | |
parent | 8d4235d97e5bd12b8244f9ffc157651a9a288b36 (diff) | |
download | llvm-55a24738302eb9bb5bf458220deb20ddef60ce51.zip llvm-55a24738302eb9bb5bf458220deb20ddef60ce51.tar.gz llvm-55a24738302eb9bb5bf458220deb20ddef60ce51.tar.bz2 |
[CtxProf] Replace include with forward declaration (NFC)
This header is fairly expensive. Forward declare
PGOContextualProfile instead.
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/InlineFunction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<int64_t>, std::vector<int64_t>> 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, |