[lld] [RISCV][LLD] Zcmt RISC-V extension in lld (PR #163142)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 22 11:16:16 PST 2025
================
@@ -767,6 +813,8 @@ static void relaxCall(Ctx &ctx, const InputSection &sec, size_t i, uint64_t loc,
sec.relaxAux->relocTypes[i] = R_RISCV_RVC_JUMP;
sec.relaxAux->writes.push_back(0x2001); // c.jal
remove = 6;
+ } else if (remove >= 6 && relaxTableJump(ctx, sec, i, loc, r, remove)) {
----------------
topperc wrote:
Should `remove >= 6` be replaced with the `remove >= (r.type == R_RISCV_JAL ? 2 : 6)`? That matches the possible values relaxTableJump can set remove to.
https://github.com/llvm/llvm-project/pull/163142
More information about the llvm-commits
mailing list