Stream: git-wasmtime

Topic: wasmtime / PR #5426 riscv64: remove `valueregs_2_reg` ext...


view this post on Zulip Wasmtime GitHub notifications bot (Dec 13 2022 at 18:39):

cfallin opened PR #5426 from risc-v-etor-fix to main:

This extractor had a side-effect of invoking put_in_regs, which is not supposed to be invoked until the pattern-matching commits to evaluating a rule right-hand side (i.e., cannot backtrack). In this case the side-effect was mostly benign (in theory it could have caused additional values to be computed needlessly), but in general we should be careful to keep side-effects out of the left-hand side to enable further optimizations and work on islec.

The implicit conversion from Value to Reg turns out to be enough to make the rules in question work, so we can simply remove the use of the extractor in this case.

<!--

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 13 2022 at 18:39):

cfallin requested jameysharp for a review on PR #5426.

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

elliottt submitted PR review.

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

cfallin updated PR #5426 from risc-v-etor-fix to main.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 13 2022 at 19:03):

cfallin updated PR #5426 from risc-v-etor-fix to main.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 13 2022 at 19:05):

jameysharp submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 13 2022 at 19:12):

cfallin updated PR #5426 from risc-v-etor-fix to main.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 13 2022 at 19:47):

cfallin merged PR #5426.


Last updated: Nov 22 2024 at 17:03 UTC