[all-commits] [llvm/llvm-project] 0ec949: [lld][LoongArch] Relax TLSDESC code sequence (#123...

Zhaoxin Yang via All-commits all-commits at lists.llvm.org
Mon Mar 31 02:48:11 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0ec94983c4cf9183f0768d6e76b363e5ebc6b255
      https://github.com/llvm/llvm-project/commit/0ec94983c4cf9183f0768d6e76b363e5ebc6b255
  Author: Zhaoxin Yang <yangzhaoxin at loongson.cn>
  Date:   2025-03-31 (Mon, 31 Mar 2025)

  Changed paths:
    M lld/ELF/Arch/LoongArch.cpp
    A lld/test/ELF/loongarch-relax-tlsdesc.s

  Log Message:
  -----------
  [lld][LoongArch] Relax TLSDESC code sequence (#123677)

Relax TLSDESC code sequence.

Original code sequence:
  * pcalau12i  $a0, %desc_pc_hi20(sym_desc)
  * addi.d     $a0, $a0, %desc_pc_lo12(sym_desc)
  * ld.d       $ra, $a0, %desc_ld(sym_desc)
  * jirl       $ra, $ra, %desc_call(sym_desc)

Cannot convert to LE/IE, but relax:
  * pcaddi     $a0, %desc_pcrel_20(sym_desc)
  * ld.d       $ra, $a0, %desc_ld(sym_desc)
  * jirl       $ra, $ra, %desc_call(sym_desc)

TODO: The transition from TLSDESC GD/LD to IE/LE will implement in a
future patch.



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