afonso360 opened PR #6988 from afonso360:riscv-cleanup-jal
to bytecodealliance:main
:
:wave: Hey,
This PR removes fixed offset jumps from some instructions in the RISC-V backend. Fixed offset jumps were replaced with labels in #6955. But we still have support for them.
Currently all branch instructions use the
BranchTarget
struct, that allows a label based jump, or a fixed offset jump.This PR does the following changes:
Jal
now takes a singleMachLabel
as it's targetBrTable
similarly now takes aVec<MachLabel>
CondBr
still usesBranchTarget
, but it can only do a label jump, or fallthrough. It can no longer do a fixed offset jumpSince
BranchTarget
is now only used inCondBr
, I've renamed itCondBrTarget
.
afonso360 requested fitzgen for a review on PR #6988.
afonso360 requested wasmtime-compiler-reviewers for a review on PR #6988.
alexcrichton submitted PR review:
Nice!
alexcrichton merged PR #6988.
Last updated: Dec 23 2024 at 12:05 UTC