Stream: git-wasmtime

Topic: wasmtime / PR #5381 riscv64: Only emit jumps at the end o...


view this post on Zulip Wasmtime GitHub notifications bot (Dec 06 2022 at 04:37):

elliottt opened PR #5381 from trevor/ssa-riscv64-remaining-bb-issues to main:

This PR fixes two bugs in the riscv64 backend, where branch instructions were emitted in the middle of a basic block:

The first bug was resolved by introducing two new psuedo instructions, LoadConst32 and LoadConst64. Both of these instructions serve to delay the original encoding to emission time, after regalloc2 has run.

The second bug was fixed by removing the BrTableCheck instruction. As it was always emitted directly before BrTable, it was easier to remove it and merge the two into a single instruction.

<!--

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 06 2022 at 04:44):

elliottt updated PR #5381 from trevor/ssa-riscv64-remaining-bb-issues to main.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 06 2022 at 04:45):

elliottt requested cfallin for a review on PR #5381.

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

cfallin submitted PR review.

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

elliottt merged PR #5381.


Last updated: Nov 22 2024 at 16:03 UTC