Stream: git-wasmtime

Topic: wasmtime / PR #5369 aarch64: Rework amode compilation to ...


view this post on Zulip Wasmtime GitHub notifications bot (Dec 01 2022 at 23:15):

elliottt opened PR #5369 from trevor/ssa-aarch64-amode to main:

Rework the compilation of amodes in the aarch64 backend to stop reusing registers and instead generate fresh virtual registers for intermediates. This resolves some SSA checker violations with the aarch64 backend, and gets us closer to having cranelift produce SSA code in general.
<!--

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 (Dec 01 2022 at 23:19):

elliottt edited PR #5369 from trevor/ssa-aarch64-amode to main:

Rework the compilation of amodes in the aarch64 backend to stop reusing registers and instead generate fresh virtual registers for intermediates. This resolves some SSA checker violations with the aarch64 backend, and as a nice side-effect removes some unnecessary movs in the generated code.
<!--

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 (Dec 01 2022 at 23:23):

elliottt requested cfallin for a review on PR #5369.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 01 2022 at 23:24):

elliottt requested fitzgen for a review on PR #5369.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 02 2022 at 00:16):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 02 2022 at 00:16):

cfallin created PR review comment:

The move is slightly awkward here; is there a way we could rewrite the AMode we created above to use init directly? (I know this is kind of awkward because we need to do the above match first to get the reg addend, but perhaps we could have a .replace_first_reg(..) on the AMode or something like that.)

view this post on Zulip Wasmtime GitHub notifications bot (Dec 02 2022 at 00:16):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 02 2022 at 00:42):

elliottt updated PR #5369 from trevor/ssa-aarch64-amode to main.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 02 2022 at 00:44):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 02 2022 at 00:52):

elliottt updated PR #5369 from trevor/ssa-aarch64-amode to main.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 02 2022 at 00:54):

elliottt updated PR #5369 from trevor/ssa-aarch64-amode to main.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 02 2022 at 00:56):

elliottt has enabled auto merge for PR #5369.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 02 2022 at 01:23):

elliottt merged PR #5369.


Last updated: Dec 23 2024 at 12:05 UTC