feat: check new alwaysInline attribute
This commit is contained in:
parent
49a6f8c105
commit
b9f174604d
1 changed files with 2 additions and 0 deletions
|
|
@ -62,6 +62,8 @@ def inlineCandidate? (e : Expr) : SimpM (Option InlineCandidateInfo) := do
|
|||
-/
|
||||
return false
|
||||
let env ← getEnv
|
||||
if hasAlwaysInlineAttribute env declName then return true
|
||||
-- TODO: check inlining quota
|
||||
if hasInlineAttribute env declName || inlineIfReduce then return true
|
||||
unless hasNoInlineAttribute env declName do
|
||||
if (← isSmall decl.value) then return true
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue