[clang] [llvm] [PowerPC] Tune AIX shared library TLS model at function level by heuristic (PR #84132)
Amy Kwan via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 2 06:54:16 PDT 2024
================
@@ -3369,6 +3369,59 @@ SDValue PPCTargetLowering::LowerGlobalTLSAddressAIX(SDValue Op,
bool Is64Bit = Subtarget.isPPC64();
bool HasAIXSmallLocalExecTLS = Subtarget.hasAIXSmallLocalExecTLS();
TLSModel::Model Model = getTargetMachine().getTLSModel(GV);
+ // Initialize TLS model opt setting lazily:
----------------
amy-kwan wrote:
This primarily sets the TLS model per function. Not sure if it is possible, but can it/does it make sense for this part to be separated into its own function?
https://github.com/llvm/llvm-project/pull/84132
More information about the cfe-commits
mailing list