[llvm] [RISCV] Remove isCodeGenOnly=0 from PseudoLA_TLSDESC. (PR #205366)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 23 08:49:55 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-risc-v
Author: Craig Topper (topperc)
<details>
<summary>Changes</summary>
The default for a Pseudo is isCodeGenOnly=1. With isCodeGenOnly=0 the 'la.tlsdesc' is a valid mnemonic for the assembly parser, but crashes in the encoder.
I don't think this was meant to be a valid assembly mnemonic so remove it.
---
Full diff: https://github.com/llvm/llvm-project/pull/205366.diff
1 Files Affected:
- (modified) llvm/lib/Target/RISCV/RISCVInstrInfo.td (+1-1)
``````````diff
diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfo.td b/llvm/lib/Target/RISCV/RISCVInstrInfo.td
index 6c776c91ae73a..90a3fd7bf3de9 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrInfo.td
+++ b/llvm/lib/Target/RISCV/RISCVInstrInfo.td
@@ -1955,7 +1955,7 @@ let hasSideEffects = 0, mayLoad = 0, mayStore = 0, Size = 8,
def PseudoLA_TLS_GD : Pseudo<(outs GPR:$dst), (ins bare_symbol:$src), [],
"la.tls.gd", "$dst, $src">;
-let hasSideEffects = 0, mayLoad = 1, mayStore = 0, Size = 32, isCodeGenOnly = 0 in
+let hasSideEffects = 0, mayLoad = 1, mayStore = 0, Size = 32 in
def PseudoLA_TLSDESC : Pseudo<(outs GPR:$dst), (ins bare_symbol:$src), [],
"la.tlsdesc", "$dst, $src">;
``````````
</details>
https://github.com/llvm/llvm-project/pull/205366
More information about the llvm-commits
mailing list