Skip to content

Commit a5e4fd7

Browse files
committed
wasm: keep load values on the stack
We internally use a lot of `load`'s that used to put the result in a newly created local. For instance, when is considered byRef or when we need a specific field/element/bytes from a larger type. However, sometimes we want to directly use this value and then forget about it, which means storing it in a local first is wasted instructions as well as wasted locals that shouldn't be generated in the first place. With this change it's explicit and requires the usage of `toLocal`.
1 parent 3cd0cd1 commit a5e4fd7

File tree

1 file changed

+116
-113
lines changed

1 file changed

+116
-113
lines changed

0 commit comments

Comments
 (0)