[PATCH] D134373: [Analysis] Introduce getLastCallToStaticBonusApplied

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 21 10:39:06 PDT 2022


davidxl added inline comments.


================
Comment at: llvm/include/llvm/Analysis/InlineCost.h:155
+  /// Get the amount of LastCallToStaticBonus applied.
+  int getLastCallToStaticBonusApplied() const {
+    assert(isVariable() && "Invalid access of InlineCost");
----------------
should this include other bonuses added too? In that case, the interface name should change accordingly.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D134373



More information about the llvm-commits mailing list