[llvm] 81d651e - [ModuleInliner] Update a comment (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 18 13:13:56 PDT 2023
Author: Kazu Hirata
Date: 2023-10-18T13:13:50-07:00
New Revision: 81d651e77b9bd8d920617542245457f02e85b78e
URL: https://github.com/llvm/llvm-project/commit/81d651e77b9bd8d920617542245457f02e85b78e
DIFF: https://github.com/llvm/llvm-project/commit/81d651e77b9bd8d920617542245457f02e85b78e.diff
LOG: [ModuleInliner] Update a comment (NFC)
InlinerOrder::front was removed by:
commit d3b95ecc98d204badbffa1840be7b7a06652a0a3
Author: Kazu Hirata <kazu at google.com>
Date: Sun Sep 18 08:49:44 2022 -0700
This patch removes a mention of front.
Added:
Modified:
llvm/lib/Analysis/InlineOrder.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/InlineOrder.cpp b/llvm/lib/Analysis/InlineOrder.cpp
index 1bdb3b98bc8706c..e6157580e25237b 100644
--- a/llvm/lib/Analysis/InlineOrder.cpp
+++ b/llvm/lib/Analysis/InlineOrder.cpp
@@ -218,10 +218,10 @@ class PriorityInlineOrder : public InlineOrder<std::pair<CallBase *, int>> {
// A call site could become less desirable for inlining because of the size
// growth from prior inlining into the callee. This method is used to lazily
// update the desirability of a call site if it's decreasing. It is only
- // called on pop() or front(), not every time the desirability changes. When
- // the desirability of the front call site decreases, an updated one would be
- // pushed right back into the heap. For simplicity, those cases where
- // the desirability of a call site increases are ignored here.
+ // called on pop(), not every time the desirability changes. When the
+ // desirability of the front call site decreases, an updated one would be
+ // pushed right back into the heap. For simplicity, those cases where the
+ // desirability of a call site increases are ignored here.
void adjust() {
std::pop_heap(Heap.begin(), Heap.end(), isLess);
while (updateAndCheckDecreased(Heap.back())) {
@@ -318,4 +318,4 @@ llvm::getInlineOrder(FunctionAnalysisManager &FAM, const InlineParams &Params,
M);
}
return getDefaultInlineOrder(FAM, Params, MAM, M);
-}
\ No newline at end of file
+}
More information about the llvm-commits
mailing list