Skip to content

Commit 81d651e

Browse files
[ModuleInliner] Update a comment (NFC)
InlinerOrder::front was removed by: commit d3b95ec Author: Kazu Hirata <[email protected]> Date: Sun Sep 18 08:49:44 2022 -0700 This patch removes a mention of front.
1 parent 4a06332 commit 81d651e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/lib/Analysis/InlineOrder.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,10 @@ class PriorityInlineOrder : public InlineOrder<std::pair<CallBase *, int>> {
218218
// A call site could become less desirable for inlining because of the size
219219
// growth from prior inlining into the callee. This method is used to lazily
220220
// update the desirability of a call site if it's decreasing. It is only
221-
// called on pop() or front(), not every time the desirability changes. When
222-
// the desirability of the front call site decreases, an updated one would be
223-
// pushed right back into the heap. For simplicity, those cases where
224-
// the desirability of a call site increases are ignored here.
221+
// called on pop(), not every time the desirability changes. When the
222+
// desirability of the front call site decreases, an updated one would be
223+
// pushed right back into the heap. For simplicity, those cases where the
224+
// desirability of a call site increases are ignored here.
225225
void adjust() {
226226
std::pop_heap(Heap.begin(), Heap.end(), isLess);
227227
while (updateAndCheckDecreased(Heap.back())) {
@@ -318,4 +318,4 @@ llvm::getInlineOrder(FunctionAnalysisManager &FAM, const InlineParams &Params,
318318
M);
319319
}
320320
return getDefaultInlineOrder(FAM, Params, MAM, M);
321-
}
321+
}

0 commit comments

Comments
 (0)