[all-commits] [llvm/llvm-project] fbdd94: [LoongArch] Use R_LARCH_ALIGN without symbol as mu...

Lu Weining via All-commits all-commits at lists.llvm.org
Mon Jun 3 18:00:36 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fbdd94847814c926f2767e656ba501b4ca7dfaae
      https://github.com/llvm/llvm-project/commit/fbdd94847814c926f2767e656ba501b4ca7dfaae
  Author: Lu Weining <luweining at loongson.cn>
  Date:   2024-06-04 (Tue, 04 Jun 2024)

  Changed paths:
    M lld/test/ELF/loongarch-relax-emit-relocs.s
    M llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchAsmBackend.cpp
    M llvm/test/MC/LoongArch/Relocations/relax-addsub.s
    M llvm/test/MC/LoongArch/Relocations/relax-align.s

  Log Message:
  -----------
  [LoongArch] Use R_LARCH_ALIGN without symbol as much as possible (#93775)

To support the third parameter of the alignment directive, R_LARCH_ALIGN
relocations need a non-zero symbol index.
In many cases we don't need the third parameter and can set the symbol
index to 0.
This patch will remove a lot of .Lla-relax-align* symbols and mitigate
the size regression due to
https://github.com/llvm/llvm-project/pull/72962.

Co-authored-by: Jinyang He <hejinyang at loongson.cn>
Co-authored-by: Weining Lu <luweining at loongson.cn>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list