You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For reasons of observability this optimization can only be applied if the intermediate result is not the register of a local variable.
The same kind of optimization can and should be applied to copy2 instructions with its two input and result values. An example Wasm input that, together with the previous copy optimization, produces two transitive copy2 instructions:
There are cases where 2 transitive copies are generated such as:
In this case it is possible to generate a single
instead.
An example input where this is currently happening with #945 being merged is:
Which results in the following Wasmi bytecode:
This issue wants to optimize the above Wasmi bytecode to the following:
Note
copy2
instructions with its two input and result values. An example Wasm input that, together with the previouscopy
optimization, produces two transitivecopy2
instructions:The text was updated successfully, but these errors were encountered: