[PATCH] D134600: [RISCV][LLD] Add RISCV zcmt optimise in linker relaxation
Kito Cheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 24 00:13:58 PDT 2023
kito-cheng added inline comments.
================
Comment at: lld/ELF/Arch/RISCV.cpp:337
case R_RISCV_32:
+ if (config->riscvTbljal && (read16le(loc) & 0xfc03) == 0xa002)
+ return;
----------------
jrtc27 wrote:
> These are extremely dodgy
See https://github.com/llvm/llvm-project/blob/main/lld/ELF/Arch/RISCV.cpp#L53-L54 , I think we can use same way here.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134600/new/
https://reviews.llvm.org/D134600
More information about the llvm-commits
mailing list