3 ms·
I doubt you get the same performance as direct compilation. LLVM ir carries lots of annotations useful to optimizing passes, e.g. aliasing information.
by the8472 7y ago
I doubt you get the same performance as direct compilation. LLVM ir carries lots of annotations useful to optimizing passes, e.g. aliasing information.
- sunfish 7y agoThe twist is, you can produce wasm from LLVM, including running the full mid-level optimizer first, which is the part of LLVM where those annotations and aliasing information are most valuable.
- bpye 7y agoIf this turns out to be useful then what's stopping us adding similar annotations in a custom section for Webassembly?