[lld] [lld][LoongArch] GOT indirection to PC relative optimization (PR #123743)

Lu Weining via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 29 00:22:19 PDT 2025


================
@@ -1167,28 +1167,49 @@ void LoongArch::tlsdescToLe(uint8_t *loc, const Relocation &rel,
 // complexity.
 bool LoongArch::tryGotToPCRel(uint8_t *loc, const Relocation &rHi20,
----------------
SixWeining wrote:

Clarification: After careful consideration, I think we do not need to check the `--relax` option because `linker relaxation` is about to reduce the number of instructions while this pr is not.

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


More information about the llvm-commits mailing list