@@ -260942,6 +260942,7 @@ let destruct_pattern (body : Lam.t) params args =
260942
260942
(** Hints to inlining *)
260943
260943
let ok_to_inline_fun_when_app (m : Lam.lfunction) (args : Lam.t list) =
260944
260944
match m.attr.inline with
260945
+ | _ when m.attr.async -> false
260945
260946
| Always_inline -> true
260946
260947
| Never_inline -> false
260947
260948
| Default_inline -> (
@@ -273576,8 +273577,8 @@ let lets_helper (count_var : Ident.t -> Lam_pass_count.used_info) lam : Lam.t =
273576
273577
end
273577
273578
| Lsequence(l1, l2) -> Lam.seq (simplif l1) (simplif l2)
273578
273579
273579
- | Lapply{ap_func = Lfunction{params; body}; ap_args = args; _}
273580
- when Ext_list.same_length params args ->
273580
+ | Lapply{ap_func = Lfunction{params; body; attr }; ap_args = args; _}
273581
+ when Ext_list.same_length params args && not attr.async ->
273581
273582
simplif (Lam_beta_reduce.no_names_beta_reduce params body args)
273582
273583
(* | Lapply{ fn = Lfunction{function_kind = Tupled; params; body}; *)
273583
273584
(* args = [Lprim {primitive = Pmakeblock _; args; _}]; _} *)
@@ -273949,8 +273950,8 @@ let simplify_alias (meta : Lam_stats.t) (lam : Lam.t) : Lam.t =
273949
273950
else normal ()
273950
273951
else normal ()
273951
273952
| Some _ | None -> normal ())
273952
- | Lapply { ap_func = Lfunction { params; body }; ap_args = args; _ }
273953
- when Ext_list.same_length params args ->
273953
+ | Lapply { ap_func = Lfunction { params; body; attr }; ap_args = args; _ }
273954
+ when Ext_list.same_length params args && not attr.async ->
273954
273955
simpl (Lam_beta_reduce.propogate_beta_reduce meta params body args)
273955
273956
(* | Lapply{ fn = Lfunction{function_kind = Tupled; params; body}; *)
273956
273957
(* args = [Lprim {primitive = Pmakeblock _; args; _}]; _} *)
0 commit comments