[llvm] [LoongArch] Modify expanding code sequence for PseudoLA_TLS_LE (PR #119696)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 17 17:41:03 PST 2024
================
@@ -1819,6 +1818,10 @@ SDValue LoongArchTargetLowering::getStaticTLSAddr(GlobalAddressSDNode *N,
SDValue Offset = Large
? SDValue(DAG.getMachineNode(Opc, DL, Ty, Tmp, Addr), 0)
: SDValue(DAG.getMachineNode(Opc, DL, Ty, Addr), 0);
+
+ if (IsNormalOrMediumLE)
----------------
wangleiat wrote:
```suggestion
if (Opc == LoongArch::PseudoLA_TLS_LE && !Large)
```
https://github.com/llvm/llvm-project/pull/119696
More information about the llvm-commits
mailing list