alexcrichton requested afonso360 for a review on PR #7142.
alexcrichton opened PR #7142 from alexcrichton:rv64-refactor-branches-and-fcmp to bytecodealliance:main:
This commit is aimed at simplifying the layers necessary to generate a
branch for abrifstatement. Previously this involved a
lower_cond_brhelper which bottomed out in emitting aCondBr
instruction. The intention here was to cut all that out and emit a
CondBrdirectly.Along the way I've additionally taken the liberty of simplifying
fcmp
as well. This moves the "prefer ordered compares" logic intoemit_fcmp
so it can benefit thefcmpinstruction as well. This additionally
trimmed some abstractions around branches which shouldn't be necessary
any longer.
alexcrichton requested cfallin for a review on PR #7142.
alexcrichton requested wasmtime-compiler-reviewers for a review on PR #7142.
alexcrichton requested wasmtime-compiler-reviewers for a review on PR #7142.
alexcrichton requested elliottt for a review on PR #7142.
cfallin submitted PR review:
All the lowerings look correct to me!
alexcrichton has enabled auto merge for PR #7142.
alexcrichton merged PR #7142.
Last updated: Dec 13 2025 at 19:03 UTC