Skip to content

Commit b344bfe

Browse files
committed
fixup! Inline functions recursively
1 parent dcf6e19 commit b344bfe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compiler/lib/inline.ml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,10 @@ let rec inline_recursively ~context ~info p params (pc, _) args =
577577
considers all possible values of [f], before the
578578
current function is inlined, not just the one
579579
called after inlining. We have checked in
580-
[relevant_arguments] that the call was exact. *)
580+
[relevant_arguments] that the call was exact.
581+
We have also checked that it made sense to inline
582+
this call. In particular, this function is
583+
applied only once. *)
581584
let f = Var.Map.find f subst in
582585
inline_function ~context i x f args rem state
583586
| _ -> i :: rem, state)

0 commit comments

Comments
 (0)