I stumbled across https://github.com/tkaitchuck/aHash/issues/222 today and using Afonso's freshly-added support to the compiler explorer whipped up https://godbolt.org/z/j6YEv81MM to show how cranelift's doing quite a good job relative native by eating through all the swap_bytes expansions that llvm inserts
just figured it was neat and wanted to share
Super neat being able to see all of this in a single screen!
nice :)
I completely randomly stumbled upon this just now, and then additionally stumbled upon the fact that the Wasmtime output is pretty different with Wasmtime 22—the latest version available on Godbolt: https://godbolt.org/z/3W8j8MG9n
It looks like maybe that's just a matter of more details being printed? I have no idea where the wasm_to_array_trampoline
comes from, though
I have no idea where the
wasm_to_array_trampoline
comes from, though
Oh, when we compile wasm in godbolt we compile it into a binary and then dissasemble it. We then filter out some of the trampoline functions that wasmtime includes in the binary, that must be broken somehow.
ah, that makes sense—thank you!
Last updated: Dec 23 2024 at 12:05 UTC