perf: missing cache at whnfImp
This commit is contained in:
parent
ce4ae37c19
commit
9f50f44eed
1 changed files with 2 additions and 2 deletions
|
|
@ -871,8 +871,8 @@ partial def whnfImp (e : Expr) : MetaM Expr :=
|
|||
| some v => cache useCache e v
|
||||
| none =>
|
||||
match (← unfoldDefinition? e') with
|
||||
| some e => whnfImp e
|
||||
| none => cache useCache e e'
|
||||
| some e'' => cache useCache e (← whnfImp e'')
|
||||
| none => cache useCache e e'
|
||||
|
||||
/-- If `e` is a projection function that satisfies `p`, then reduce it -/
|
||||
def reduceProjOf? (e : Expr) (p : Name → Bool) : MetaM (Option Expr) := do
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue