[lld] [RISCV][LLD] Add RISCV zcmt optimise in linker relaxation (PR #77884)

Kito Cheng via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 16 06:10:18 PST 2024


https://github.com/kito-cheng commented:

> In TableJumpSection::finalizeContents(), the linker will abort the tbljal optimization and empty the Jump table if tbljal optimization would cause a negative optimization (i.e., the size reduction caused by the Table jump Inst is less than the size increase caused by making the Jump Table).

Add a testcase to demonstrate that?

https://github.com/llvm/llvm-project/pull/77884


More information about the llvm-commits mailing list