[PATCH] D158197: [PowerPC][lld] Account for additional X-Forms -> D-Form/DS-Forms load/stores when relaxing initial-exec to local-exec

Amy Kwan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 17 09:19:06 PDT 2023


amyk created this revision.
amyk added reviewers: PowerPC, sfertile, syzaara, stefanp, kamaub, nemanjai.
amyk added projects: LLVM, PowerPC, lld.
Herald added subscribers: shchenz, kbarton, arichardson, emaste.
Herald added a reviewer: MaskRay.
Herald added a project: All.
amyk requested review of this revision.
Herald added a subscriber: llvm-commits.

D153645 <https://reviews.llvm.org/D153645> added additional X-Form load/stores that can be generated for TLS accesses.
However, these added instructions have not been accounted for in lld. As a result,
lld does not know how to handle them and cannot relax initial-exec to local-exec
when the initial-exec sequence contains these additional load/stores.

This patch aims to resolve https://github.com/llvm/llvm-project/issues/64424.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D158197

Files:
  lld/ELF/Arch/PPC.cpp
  lld/ELF/Arch/PPC64.cpp
  lld/ELF/Target.h
  lld/test/ELF/ppc32-tls-ie.s
  lld/test/ELF/ppc64-tls-ie.s
  lld/test/ELF/ppc64-tls-pcrel-ie.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158197.551170.patch
Type: text/x-patch
Size: 14229 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230817/b902700b/attachment.bin>


More information about the llvm-commits mailing list