[PATCH] D155600: [AIX][TLS] Produce a faster local-exec access sequence with -maix-small-local-exec-tls (And optimize when load/store offsets are 0)

Amy Kwan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 7 22:06:00 PDT 2023


amyk updated this revision to Diff 548061.
amyk marked 20 inline comments as done.
amyk added a comment.

- Update comments
- Add assert for TLS model in PPCMCInstLower.cpp
- Update `GetSymbolFromOperand()`
- Only produce the faster local-exec sequences when the global variable is sized and non-empty (to catch cases like an extern struct or unbounded array)
- Clean up `PPCAsmPrinter.cpp`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D155600/new/

https://reviews.llvm.org/D155600

Files:
  llvm/lib/Target/PowerPC/MCTargetDesc/PPCXCOFFObjectWriter.cpp
  llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
  llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
  llvm/lib/Target/PowerPC/PPCISelLowering.cpp
  llvm/lib/Target/PowerPC/PPCMCInstLower.cpp
  llvm/test/CodeGen/PowerPC/aix-small-local-exec-tls-char.ll
  llvm/test/CodeGen/PowerPC/aix-small-local-exec-tls-double.ll
  llvm/test/CodeGen/PowerPC/aix-small-local-exec-tls-float.ll
  llvm/test/CodeGen/PowerPC/aix-small-local-exec-tls-int.ll
  llvm/test/CodeGen/PowerPC/aix-small-local-exec-tls-largeaccess.ll
  llvm/test/CodeGen/PowerPC/aix-small-local-exec-tls-longlong.ll
  llvm/test/CodeGen/PowerPC/aix-small-local-exec-tls-short.ll
  llvm/test/CodeGen/PowerPC/aix-tls-le-ldst-O0.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155600.548061.patch
Type: text/x-patch
Size: 83199 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230808/4b99b8e6/attachment-0001.bin>


More information about the llvm-commits mailing list