-
Notifications
You must be signed in to change notification settings - Fork 43
Add other shuffles back? #70
Comments
FYI, the other shuffles were removed in 8a1f98c |
I feel that this isn't really necessary. Yes, it could have some space savings, but it does not add any new functionality or optimization opportunity. I could be convinced that adding these extra shuffles would be worth the effort by real-world data showing a non-negligible code size win. |
I want to express my position on this as I'm the one who proposed to put them back. First, I don't think adding new instructions increases the complexity of the spec (it will be definitely longer, but not harder). Is it worth to "waste" 3 opcodes for that?Pros:
Cons:
In my opinion, it is worth specifying those 3 extra instructions. |
See @binji's comment in #69, WASM spec hasn't tried to do this type of optimization yet:
It would make sense to do space optimizations across all WASM, not just SIMD. |
From #30, there may be use in shuffle instructions other than
v8x16
. Pros are simpler runtime code generation (there are hardware instructions that are a direct match) and space savings (less indices to store). The latter can be furthered by packing the indices. The cost is more complexity in the spec (multiple instructions instead of one).The text was updated successfully, but these errors were encountered: