[llvm] [AIX][TLS] Produce a faster local-exec access sequence for the "aix-small-tls" global variable attribute (PR #83053)
zhijian lin via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 19 13:05:05 PDT 2024
================
@@ -3365,6 +3365,7 @@ SDValue PPCTargetLowering::LowerGlobalTLSAddressAIX(SDValue Op,
EVT PtrVT = getPointerTy(DAG.getDataLayout());
bool Is64Bit = Subtarget.isPPC64();
bool HasAIXSmallLocalExecTLS = Subtarget.hasAIXSmallLocalExecTLS();
+ bool HasAIXSmallTLSGlobalAttr = false;
----------------
diggerlin wrote:
since the two variables `HasAIXSmallLocalExecTLS` and `HasAIXSmallTLSGlobalAttr` are used in `if (IsTLSLocalExecModel || Model == TLSModel::InitialExec) {`
please put
```
bool HasAIXSmallLocalExecTLS = Subtarget.hasAIXSmallLocalExecTLS();
bool HasAIXSmallTLSGlobalAttr = false;
```
in
`if (IsTLSLocalExecModel || Model == TLSModel::InitialExec) {`
https://github.com/llvm/llvm-project/pull/83053
More information about the llvm-commits
mailing list