IIRC, Bolt reorganizes binaries to separate out cold blocks into separate
code sections. A similar optimization would probably be useful in
WebAssembly, but it would have to outline the cold blocks into separate
functions. Alternatively, we could add some sort of hinting about cold
blocks in a custom section and let the WebAssembly engine perform this
optimization on the compiled code.

On Wed, Jan 12, 2022 at 01:32 Soeren Balko <[email protected]> wrote:

> The good people at Facebook just landed their "Bolt" optimizer in LLVM:  
> llvm-project/bolt
> at main ยท llvm/llvm-project (github.com)
> <https://github.com/llvm/llvm-project/tree/main/bolt>
>
> Bolt is currently limited to x86-64 and AArch64. Given the lofty
> performance uplift that Bolt claims to deliver, I wonder if WebAssembly
> would benefit from it. Any thoughts?
>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/emscripten-discuss/1cd76c9b-7ea9-4fd4-9678-72b080204f5an%40googlegroups.com
> <https://groups.google.com/d/msgid/emscripten-discuss/1cd76c9b-7ea9-4fd4-9678-72b080204f5an%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/CAJZD_EX86qYniowqZVABcLnuprQNf6V_iwWeHF6n7p9parfQ2A%40mail.gmail.com.

Reply via email to