Stream: git-wasmtime

Topic: wasmtime / PR #5097 Cleanup branch and select instructions


view this post on Zulip Wasmtime GitHub notifications bot (Oct 21 2022 at 23:12):

elliottt opened PR #5097 from trevor/remove-branch-instructions to main:

<!--

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 (Oct 21 2022 at 23:14):

elliottt edited PR #5097 from trevor/remove-branch-instructions to main:

As discussed in the 2022/10/19 meeting, this PR removes many of the branch and select instructions that used iflags, in favor if using brz/brnz and select in their place. Additionally, it reworks selectif_spectre_guard to take an i8 input instead of an iflags input.
<!--

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 (Oct 21 2022 at 23:15):

elliottt edited PR #5097 from trevor/remove-branch-instructions to main:

As discussed in the 2022/10/19 meeting, this PR removes many of the branch and select instructions that used iflags, in favor if using brz/brnz and select in their place. Additionally, it reworks selectif_spectre_guard to take an i8 input instead of an iflags input.
<!--

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 (Oct 21 2022 at 23:16):

elliottt edited PR #5097 from trevor/remove-branch-instructions to main:

As discussed in the 2022/10/19 meeting, this PR removes many of the branch and select instructions that used iflags, in favor if using brz/brnz and select in their place. Additionally, it reworks selectif_spectre_guard to take an i8 input instead of an iflags input.

For reference, the removed instructions are: br_icmp, brif, brff, trueif, trueff, and selectif.
<!--

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 (Oct 21 2022 at 23:29):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 21 2022 at 23:29):

cfallin created PR review comment:

Rather than deleting, can we convert these tests to use icmp / brnz pairs, so we're still testing the proper matching of the two together (and assuring that we don't accidentally materialize the 0/1 value into a register)?

view this post on Zulip Wasmtime GitHub notifications bot (Oct 21 2022 at 23:29):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 21 2022 at 23:29):

cfallin created PR review comment:

LIkewise here, switch to icmp/select rather than deleting

view this post on Zulip Wasmtime GitHub notifications bot (Oct 21 2022 at 23:29):

cfallin created PR review comment:

LIkewise here

view this post on Zulip Wasmtime GitHub notifications bot (Oct 21 2022 at 23:29):

cfallin created PR review comment:

Likewise here

view this post on Zulip Wasmtime GitHub notifications bot (Oct 21 2022 at 23:48):

elliottt submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 21 2022 at 23:48):

elliottt created PR review comment:

Yep, that's a good call!

view this post on Zulip Wasmtime GitHub notifications bot (Oct 23 2022 at 18:40):

elliottt updated PR #5097 from trevor/remove-branch-instructions to main.


Last updated: Dec 23 2024 at 13:07 UTC