[PATCH] D151462: [RISCV] Add cleanup pass for TLS local dynamic
Paul Kirth via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 25 09:03:03 PDT 2023
paulkirth created this revision.
paulkirth added reviewers: asb, craig.topper, jrtc27.
Herald added subscribers: jobnoorman, luke, VincentWu, vkmr, frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, asbirlea, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, arichardson.
Herald added a project: All.
paulkirth requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.
In the local dynamic case, redundant loads of `_TLS_MODULE_BASE_`
can be removed. This patch follows the precident for other backends by
using a dominator relationship to find these loads and replace their
uses whenever it is possible.
Depends on D151458 <https://reviews.llvm.org/D151458>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D151462
Files:
llvm/lib/Target/RISCV/CMakeLists.txt
llvm/lib/Target/RISCV/RISCV.h
llvm/lib/Target/RISCV/RISCVCleanupLocalDynamicTLSPass.cpp
llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
llvm/test/CodeGen/RISCV/O3-pipeline.ll
llvm/test/CodeGen/RISCV/machinelicm-address-pseudos.ll
llvm/test/CodeGen/RISCV/mir-target-flags.ll
llvm/test/CodeGen/RISCV/tls-models.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151462.525651.patch
Type: text/x-patch
Size: 32305 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230525/f4f4c1cc/attachment.bin>
More information about the llvm-commits
mailing list