[all-commits] [llvm/llvm-project] 598ccc: [AIX][TLS] Generate optimized local-exec access co...

Amy Kwan via All-commits all-commits at lists.llvm.org
Thu Jul 6 05:57:29 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 598cccea80f5614869bf0dda4d09d68b2c64423c
  Author: Amy Kwan <amy.kwan1 at ibm.com>
  Date:   2023-07-06 (Thu, 06 Jul 2023)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
    M llvm/lib/Target/PowerPC/PPCSubtarget.h
    A llvm/test/CodeGen/PowerPC/aix-tls-le-ldst-O0.ll
    M llvm/test/CodeGen/PowerPC/aix-tls-le-ldst-double.ll
    M llvm/test/CodeGen/PowerPC/aix-tls-le-ldst-float.ll
    M llvm/test/CodeGen/PowerPC/aix-tls-le-ldst-int.ll
    M llvm/test/CodeGen/PowerPC/aix-tls-le-ldst-longlong.ll
    M llvm/test/CodeGen/PowerPC/aix-tls-le-xcoff-reloc-large.ll
    M llvm/test/CodeGen/PowerPC/aix-tls-le-xcoff-reloc.ll
    M llvm/test/CodeGen/PowerPC/aix-tls-le-xcoff-reloc32.ll

  Log Message:
  [AIX][TLS] Generate optimized local-exec access code sequence using X-Form loads/stores

This patch is a follow up to D149722, D152669 and D153645, where a slightly more
optimized code sequence is generated for 64-bit and 32-bit local-exec accesses
when optimizations are turned on.

Handling is added PPCISelDAGToDAG.cpp in order to check if any D-form loads or
stores that follow an PPCISD::ADD_TLS can be optimized to use an X-Form load or
store. In this particular situation, this allows the ADD_TLS node to be removed

Differential Revision: https://reviews.llvm.org/D150367

More information about the All-commits mailing list