Skip to content

Commit 283302c

Browse files
committed
[𝘀𝗽𝗿] changes introduced through rebase
Created using spr 1.3.6 [skip ci]
1 parent 90b2379 commit 283302c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

llvm/lib/Transforms/IPO/AlwaysInliner.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,15 @@ using namespace llvm;
3030

3131
namespace {
3232

33-
bool canInlineCallBase(CallBase *CB) {
33+
/// Sanity check for a call site's inlinability based on inline attributes.
34+
static bool canInlineCallBase(CallBase *CB) {
3435
return CB->hasFnAttr(Attribute::AlwaysInline) &&
3536
!CB->getAttributes().hasFnAttr(Attribute::NoInline);
3637
}
3738

38-
bool attemptInlineFunction(
39+
/// Attempt to inline a call site \p CB into its caller.
40+
/// Returns true if the inlining was successful, false otherwise.
41+
static bool attemptInlineFunction(
3942
Function &F, CallBase *CB, bool InsertLifetime,
4043
function_ref<AAResults &(Function &)> &GetAAR,
4144
function_ref<AssumptionCache &(Function &)> &GetAssumptionCache,

0 commit comments

Comments
 (0)