[PATCH] D95024: [NFC] Factor out common part for CSSPGO inline and AFDO inline

Wenlei He via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 23 08:33:46 PST 2021


wenlei added inline comments.


================
Comment at: llvm/lib/Transforms/IPO/SampleProfile.cpp:420
   const FunctionSamples *findFunctionSamples(const Instruction &I) const;
-  CallBase *tryPromoteIndirectCall(Function &F, StringRef CalleeName,
-                                   uint64_t &Sum, uint64_t Count, CallBase *I,
-                                   const char *&Reason);
-  bool inlineCallInstruction(CallBase &CB,
-                             const FunctionSamples *CalleeSamples);
+  bool tryPromoteAndInlineCandidate(
+      Function &F, InlineCandidate &Candidate, uint64_t &Sum,
----------------
wmi wrote:
> Maybe have a comment explaining the params, especially showing some of them are input and some are output.
Comments added to definition.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D95024/new/

https://reviews.llvm.org/D95024



More information about the llvm-commits mailing list