[clang] [llvm] [PowerPC] Tune AIX shared library TLS model at function level by heuristic (PR #84132)

Felix via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 8 22:27:22 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:
----------------
orcguru wrote:

Sure. Created static function guarded by `Subtarget.hasAIXShLibTLSModelOpt()`. Thank you for the suggestion!

https://github.com/llvm/llvm-project/pull/84132


More information about the cfe-commits mailing list