[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:02 PST 2024


================
@@ -301,7 +301,8 @@ class LoongArchTargetLowering : public TargetLowering {
   SDValue getAddr(NodeTy *N, SelectionDAG &DAG, CodeModel::Model M,
                   bool IsLocal = true) const;
   SDValue getStaticTLSAddr(GlobalAddressSDNode *N, SelectionDAG &DAG,
-                           unsigned Opc, bool UseGOT, bool Large = false) const;
+                           unsigned Opc, bool UseGOT, bool Large = false,
+                           bool IsNormalOrMediumLE = false) const;
----------------
wangleiat wrote:

This parameter should be removable.
`IsNormalOrMediumLE` = `(Opc == LoongArch::PseudoLA_TLS_LE && !Large)`

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


More information about the llvm-commits mailing list