Stream: git-wasmtime

Topic: wasmtime / PR #6565 cranelift: Remove the `fcvt_low_from_...


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

alexcrichton opened PR #6565 from alexcrichton:remove-fcvt-low-from-sint to bytecodealliance:main:

This commit removes this instruction since it's a combination of swiden_low plus fcvt_from_sint. This was used by the WebAssembly f64x2.convert_low_i32x4_s instruction previously but the corresponding unsigned variant of the instruction, f64x2.convert_low_i32x4_u, used a uwiden_low plus fcvt_from_uint combo. To help simplify Cranelift's instruction set and to make these two instructions mirrors of each other the Cranelift instruction is removed.

The s390x and AArch64 backend lowering rules for this instruction could simply be deleted as the previous combination of the swiden_low and fcvt_from_sint lowering rules produces the same code. The x64 backend moved its lowering to a special case of the fcvt_from_sint lowering.

<!--
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 (Jun 12 2023 at 20:30):

alexcrichton requested abrown for a review on PR #6565.

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

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

view this post on Zulip Wasmtime GitHub notifications bot (Jun 12 2023 at 20:59):

alexcrichton updated PR #6565.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 12 2023 at 21:15):

jameysharp submitted PR review:

It's always nice to get rid of CLIF instructions and this one looks to have been remarkably painless. Thank you!

view this post on Zulip Wasmtime GitHub notifications bot (Jun 13 2023 at 01:12):

alexcrichton merged PR #6565.


Last updated: Nov 22 2024 at 17:03 UTC