Stream: git-wasmtime

Topic: wasmtime / PR #7344 refactor: using emit_cmp helper to re...


view this post on Zulip Wasmtime GitHub notifications bot (Oct 24 2023 at 07:43):

Solo-steven opened PR #7344 from Solo-steven:steven/issue-5869 to bytecodealliance:main:

This PR implement second part of issue #5869 .

As lowering selection based on fcmp a declare a helper function for lowering icmp-based select instruction.

<!--
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 (Oct 24 2023 at 07:43):

Solo-steven requested wasmtime-compiler-reviewers for a review on PR #7344.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 24 2023 at 07:43):

Solo-steven requested cfallin for a review on PR #7344.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 24 2023 at 07:46):

Solo-steven edited PR #7344:

This PR implement second part of issue #5869 .

As lowering select instruction based on fcmp a declare a helper function for lowering icmp-based select instruction.

<!--
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 (Oct 24 2023 at 07:56):

Solo-steven edited PR #7344:

This PR implements the second part of issue #5869 .

As lowering the select instruction based on fcmp. I declare a helper function for lowering icmp-based select instruction.

<!--
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 (Oct 24 2023 at 22:37):

cfallin submitted PR review:

Thanks! One formatting nit below, otherwise this seems correct.

Do you expect codegen to improve for any combination of compare and select instructions? If so, could we add a test showing that?

view this post on Zulip Wasmtime GitHub notifications bot (Oct 24 2023 at 22:37):

cfallin submitted PR review:

Thanks! One formatting nit below, otherwise this seems correct.

Do you expect codegen to improve for any combination of compare and select instructions? If so, could we add a test showing that?

view this post on Zulip Wasmtime GitHub notifications bot (Oct 24 2023 at 22:37):

cfallin created PR review comment:

formatting nit: remove the space between b and the right-paren?

view this post on Zulip Wasmtime GitHub notifications bot (Oct 25 2023 at 08:31):

Solo-steven updated PR #7344.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 26 2023 at 02:42):

Solo-steven requested cfallin for a review on PR #7344.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 26 2023 at 15:56):

cfallin submitted PR review:

Looks good, thanks! I didn't necessarily expect any codegen changes either, I was just curious if there were any intended. This looks like a pure refactor which is perfectly fine!

view this post on Zulip Wasmtime GitHub notifications bot (Oct 26 2023 at 16:49):

cfallin merged PR #7344.


Last updated: Nov 22 2024 at 17:03 UTC