Stream: git-wasmtime

Topic: wasmtime / PR #4042 Cranelift: fix regalloc2 integration ...


view this post on Zulip Wasmtime GitHub notifications bot (Apr 16 2022 at 03:18):

cfallin opened PR #4042 from fix-blockparam-branch-args to main:

Previously, the block successor accumulation and the blockparam branch
arg setup were decoupled. The lowering backend implicitly specified
the order of successor edges via its MachTerminator enum on the last
instruction in the block, while the Lower toplevel
machine-independent driver set up blockparam branch args in the edge
order seen in CLIF.

In some cases, these orders did not match -- for example, when the
conditional branch depended on an FP condition that was implemented by
swapping taken/not-taken edges and inverting the condition code.

This PR refactors the successor handling to be centralized in Lower
rather than flow through the terminator MachInst, and adds a
successor block and its blockparam args at the same time, ensuring the
orders match.

<!--

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 (Apr 16 2022 at 03:18):

cfallin requested fitzgen for a review on PR #4042.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 18 2022 at 16:42):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 18 2022 at 16:53):

cfallin merged PR #4042.


Last updated: Nov 22 2024 at 16:03 UTC