Stream: git-wasmtime

Topic: wasmtime / PR #6314 aarch64: Fix usage of `load_addr` in ...


view this post on Zulip Wasmtime GitHub notifications bot (Apr 30 2023 at 20:22):

alexcrichton opened PR #6314 from alexcrichton:aarch64-fix-splat-load to bytecodealliance:main:

This fixes an issue in the AArch64 backend where a load_addr helper was used exclusively for lowering splat-of-a-loaded-address. This helper expanded in some cases to a pseudo-LoadAddr instruction but the lowering of this instruction doesn't actually exhaustively handle all AMode values.

The fix in this commit is to remove the load_addr helper altogether to remove the need to go from an AMode back to a Reg, instead going directly from an address to a register. The one small wrinkle is a small helper now to add the immediate offset to the address register, but that's not too too bad to write.

By avoiding the LoadAddr instruction the unimplemented cases aren't hit, so the codegen issue should be fixed.

Closes #6313

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Apr 30 2023 at 20:22):

alexcrichton requested abrown for a review on PR #6314.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 30 2023 at 20:22):

alexcrichton requested wasmtime-compiler-reviewers for a review on PR #6314.

view this post on Zulip Wasmtime GitHub notifications bot (May 01 2023 at 17:19):

cfallin assigned PR #6314 to cfallin.

view this post on Zulip Wasmtime GitHub notifications bot (May 01 2023 at 18:08):

cfallin submitted PR review:

LGTM!

view this post on Zulip Wasmtime GitHub notifications bot (May 01 2023 at 18:49):

cfallin merged PR #6314.


Last updated: Nov 22 2024 at 17:03 UTC