[PATCH] D79018: [PowerPC] Remove support for SplitCSR.

Sean Fertile via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 28 09:39:13 PDT 2020


sfertile created this revision.
sfertile added reviewers: nemanjai, daltenty, jsji, saghir.
sfertile added a project: PowerPC.
Herald added subscribers: steven.zhang, shchenz, kbarton, hiraditya.
Herald added a project: LLVM.

SplitCSR was only supported for functions with CXX_FAST_TLS calling convention. Clang only emits that calling convention for Darwin which is no longer supported by the PowerPC backend. Another IR producer //could// potentially use the calling convention, but considering the calling convention is meant to be an optimization and the codegen for SplitCSR can be atrocious on Power (see the modified lit test) it is best to remove it and codegen CXX_FAST_TLS same as the C calling convention.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79018

Files:
  llvm/lib/Target/PowerPC/PPCCallingConv.td
  llvm/lib/Target/PowerPC/PPCFastISel.cpp
  llvm/lib/Target/PowerPC/PPCISelLowering.cpp
  llvm/lib/Target/PowerPC/PPCISelLowering.h
  llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.h
  llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp
  llvm/lib/Target/PowerPC/PPCRegisterInfo.h
  llvm/test/CodeGen/PowerPC/cxx_tlscc64.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79018.260667.patch
Type: text/x-patch
Size: 11583 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200428/29672c3d/attachment.bin>


More information about the llvm-commits mailing list