-
Notifications
You must be signed in to change notification settings - Fork 786
asm2wasm not folding away some redundant type coercions #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yes, we should remove those. What source code led to them? |
Emscripten generated asm.js for the zlib benchmark. This example looks like asm.js |
I see, thanks, looks like for calls and returns we look through the coercions, but for comparisons specifically we don't. Looking into that now. |
Ok, the issue wasn't comparisons, but rather that we had the look-through logic for |
Forgot to add the issue # in the commit, it was this: 2654fe2 |
Spotted at lot of
(i32.shr_u <exp> 0)
operations. Most are probably a remnant of asm.js style and should be removed?For example:
(i32.gt_u (i32.shr_u (get_local $i3) (i32.const 0)) (i32.shr_u (get_local $i1) (i32.const 0))))
The text was updated successfully, but these errors were encountered: