|
Hello! Currently, Binaryen is unable to optimize calls to |
Answered by
kripken
Apr 2, 2025
Replies: 1 comment 2 replies
|
We do have an intrinsic for that, binaryen/test/lit/passes/vacuum-intrinsics.wast Lines 35 to 40 in 85fc8bb More docs: https://github.com/WebAssembly/binaryen?tab=readme-ov-file#intrinsics |
2 replies
Answer selected by
GulgDev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We do have an intrinsic for that,
call.without.effects, that can mark a call (not a function, but you can mark all calls to a target) as having no effects. This is experimental and may change. Here is the test that shows its usage:binaryen/test/lit/passes/vacuum-intrinsics.wast
Lines 35 to 40 in 85fc8bb
More docs:
https://github.com/WebAssembly/binaryen?tab=readme-ov-file#intrinsics