We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01ff409 commit d6454deCopy full SHA for d6454de
compiler/lib/inline.ml
@@ -326,9 +326,10 @@ let interesting_parameters ~context info =
326
code elimination, ...
327
*)
328
let functor_like ~context info =
329
- (match context.profile with
330
- | O1 -> body_size ~context info <= 15
331
- | O2 | O3 -> true)
+ (match Config.target (), context.profile with
+ | `Wasm, (O2 | O3) -> true
+ | `Wasm, O1 -> body_size ~context info <= 15
332
+ | `JavaScript, (O1 | O2 | O3) -> body_size ~context info <= 15)
333
&& (not info.recursive)
334
&& (not (contains_loop ~context info))
335
&& returns_a_block ~context info
0 commit comments