Stream: git-wasmtime

Topic: wasmtime / PR #1674 MachInst backend: don't reallocate Re...


view this post on Zulip Wasmtime GitHub notifications bot (May 08 2020 at 22:37):

cfallin requested bnjbvr and julian-seward1 for a review on PR #1674.

view this post on Zulip Wasmtime GitHub notifications bot (May 08 2020 at 22:37):

cfallin opened PR #1674 from machinst-reg-universe-opt to master:

There's no good reason for the current behavior; we just happened to build the RealRegUniverse each time it was needed. This involves allocating a Vec and pushing a bunch (on AArch64, O(64)) of register-info structs onto it. We should share this work across the backend instance as long as it exists; and we can, because the flags (which might affect which registers we use) remain constant for one backend instance.

This saves ~0.14% instruction count, ~0.18% allocated bytes, and ~1.5%
allocated blocks on a clif-util wasm compilation of bz2.wasm for
aarch64.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (May 08 2020 at 22:37):

cfallin requested bnjbvr and julian-seward1 for a review on PR #1674.

view this post on Zulip Wasmtime GitHub notifications bot (May 09 2020 at 06:04):

julian-seward1 submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (May 09 2020 at 21:10):

cfallin merged PR #1674.


Last updated: Nov 22 2024 at 17:03 UTC