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
Notice that it hoisted the array allocation (the slow path) out of the conditional and unconditionally allocates and then uses a select (ref $Array<i16>) to select between the two.
This is very problematic
The text was updated successfully, but these errors were encountered:
Is there a way to run the code? We can adjust the cost of allocations to make the optimizer avoid them more often, but I'd prefer to do that with measurements.
We have for example this Dart code
Notice that we have a fast path: For small lengths we want to avoid allocating the wasm array and use a cache instead.
Compiled with dart2wasm and optimized with binaryen we get this:
Notice that it hoisted the array allocation (the slow path) out of the conditional and unconditionally allocates and then uses a
select (ref $Array<i16>)
to select between the two.This is very problematic
The text was updated successfully, but these errors were encountered: