[llvm] e89a4df - [RISCV] Fix typo in ImmPlus1 SDNodeXForm (#190785)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 7 16:57:40 PDT 2026
Author: Jim Lin
Date: 2026-04-08T07:57:35+08:00
New Revision: e89a4dfabfac7016819d201dacb6c6c58e6a2365
URL: https://github.com/llvm/llvm-project/commit/e89a4dfabfac7016819d201dacb6c6c58e6a2365
DIFF: https://github.com/llvm/llvm-project/commit/e89a4dfabfac7016819d201dacb6c6c58e6a2365.diff
LOG: [RISCV] Fix typo in ImmPlus1 SDNodeXForm (#190785)
getValuePtrVTpe -> getValueType. Currently dead code since GlobalISel
uses a custom renderer instead of the SDNodeXForm body, but should be
correct in case the SDAG path ever picks up these patterns.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply at anthropic.com>
Added:
Modified:
llvm/lib/Target/RISCV/RISCVGISel.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVGISel.td b/llvm/lib/Target/RISCV/RISCVGISel.td
index 67d2cacd5cdb9..3a2f0ea1f876c 100644
--- a/llvm/lib/Target/RISCV/RISCVGISel.td
+++ b/llvm/lib/Target/RISCV/RISCVGISel.td
@@ -32,7 +32,7 @@ def simm12Minus1NonzeroNonNeg1 : ImmLeaf<XLenVT, [{
// Return an immediate value plus 1.
def ImmPlus1 : SDNodeXForm<imm, [{
return CurDAG->getTargetConstant(N->getSExtValue() + 1, SDLoc(N),
- N->getValuePtrVTpe(0));}]>;
+ N->getValueType(0));}]>;
def GIImmPlus1 :
GICustomOperandRenderer<"renderImmPlus1">,
GISDNodeXFormEquiv<ImmPlus1>;
More information about the llvm-commits
mailing list