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
BranchTargetstruct, that allows a label based jump, or a fixed offset jump.This PR does the following changes:
Jalnow takes a singleMachLabelas it's targetBrTablesimilarly now takes aVec<MachLabel>CondBrstill usesBranchTarget, but it can only do a label jump, or fallthrough. It can no longer do a fixed offset jumpSince
BranchTargetis 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 06 2025 at 06:05 UTC