[PATCH] D152758: [NFC] Refactor MBB hotness/coldness into templated PSI functions

Han Shen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 23 15:19:08 PDT 2023


shenhan marked an inline comment as done.
shenhan added inline comments.


================
Comment at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:128
+  template <typename FunctionType, typename FreqInfoType>
+  bool isFunctionHotInCallGraph(const FunctionType *F, FreqInfoType &FI) const {
+    if (!F || !hasProfileSummary())
----------------
Also renamed all occurrences of template type name "FreqInfoType" -> "BFIT", so this is in accordance with existing code.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D152758



More information about the llvm-commits mailing list