[PATCH] D134600: [RISCV][LLD] Add RISCV zcmt optimise in linker relaxation
Jessica Clarke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 29 14:14:33 PDT 2023
jrtc27 added inline comments.
================
Comment at: lld/ELF/Arch/RISCV.cpp:337
case R_RISCV_32:
+ if (config->riscvTbljal && (read16le(loc) & 0xfc03) == 0xa002)
+ return;
----------------
kito-cheng wrote:
> 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.
Uh, what is this diff now? That's not what Kito said to do, and doesn't make it less dodgy. All you've done is given it a name, but that doesn't change the fact that the whole approach is dodgy.
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