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 2acb9e7 commit 3695d26Copy full SHA for 3695d26
compiler/lib/inline.ml
@@ -344,7 +344,8 @@ let functor_like ~context info =
344
(match Config.target (), context.profile with
345
| `Wasm, (O2 | O3) -> true
346
| `Wasm, O1 -> body_size ~context info <= 15
347
- | `JavaScript, (O1 | O2 | O3) -> body_size ~context info <= 15)
+ | `JavaScript, (O1 | O2) -> false
348
+ | `JavaScript, O3 -> body_size ~context info <= 15)
349
&& (not info.recursive)
350
&& (not (contains_loop ~context info))
351
&& returns_a_block ~context info
0 commit comments