Skip to content

Commit b29101c

Browse files
Incorporate review comments
1 parent 7297b2a commit b29101c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/lib/Analysis/InlineCost.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3277,7 +3277,8 @@ InlineCost llvm::getInlineCost(
32773277
}
32783278

32793279
if (InlineAllViableCalls && isInlineViable(*Callee).isSuccess())
3280-
return llvm::InlineCost::getAlways("inline all viable calls");
3280+
return llvm::InlineCost::getAlways(
3281+
"Inlining forced by --inline-all-viable-calls");
32813282

32823283
LLVM_DEBUG(llvm::dbgs() << " Analyzing call of " << Callee->getName()
32833284
<< "... (caller:" << Call.getCaller()->getName()

llvm/test/Transforms/Inline/inline-all-viable-calls.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
21
; RUN: opt -passes=inline -inline-threshold=0 -inline-all-viable-calls -S < %s | FileCheck %s
32

43
; Check that viable calls that are beyond the cost threshold are still inlined.

0 commit comments

Comments
 (0)