aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2018-08-20 16:51:11 +0200
committerPierre-Marie Pédrot2018-08-20 16:51:11 +0200
commit504134c71da463a9d58eaf5b090b889805bd1b98 (patch)
tree13d45a5b084c5fa4813bc13b0cdcbf3b853d7593 /kernel
parentc66c27781c555ec7301300cbf0d0342394c03981 (diff)
Do not inline let-bound functions in clambda optimization.
This was triggering an exponential blowup in the size of the generated intermediate VM code. Fixes #8277.
Diffstat (limited to 'kernel')
-rw-r--r--kernel/clambda.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/clambda.ml b/kernel/clambda.ml
index 7c00e40fb0..961036d3c5 100644
--- a/kernel/clambda.ml
+++ b/kernel/clambda.ml
@@ -269,7 +269,7 @@ let lam_subst_args subst args =
let can_subst lam =
match lam with
| Lrel _ | Lvar _ | Lconst _
- | Lval _ | Lsort _ | Lind _ | Llam _ -> true
+ | Lval _ | Lsort _ | Lind _ -> true
| _ -> false
let rec simplify subst lam =