[llvm] 2e9bfca - [RISCV] Remove unused SDNodeXForm from RISCVGISel.td. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 12 09:26:13 PST 2024
Author: Craig Topper
Date: 2024-12-12T09:26:03-08:00
New Revision: 2e9bfcadbc25e8056ea8f7011786a835c3307a1b
URL: https://github.com/llvm/llvm-project/commit/2e9bfcadbc25e8056ea8f7011786a835c3307a1b
DIFF: https://github.com/llvm/llvm-project/commit/2e9bfcadbc25e8056ea8f7011786a835c3307a1b.diff
LOG: [RISCV] Remove unused SDNodeXForm from RISCVGISel.td. NFC
Leftover from when we tried to make i32 legal.
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 7cb419b610e603..f9c17cf5eed5dd 100644
--- a/llvm/lib/Target/RISCV/RISCVGISel.td
+++ b/llvm/lib/Target/RISCV/RISCVGISel.td
@@ -58,15 +58,6 @@ def GIAddrRegImm :
def GIVLOp : GIComplexOperandMatcher<s32, "renderVLOp">,
GIComplexPatternEquiv<VLOp>;
-// Convert from i32 immediate to i64 target immediate to make SelectionDAG type
-// checking happy so we can use ADDIW which expects an XLen immediate.
-def as_i64imm : SDNodeXForm<imm, [{
- return CurDAG->getTargetConstant(N->getSExtValue(), SDLoc(N), MVT::i64);
-}]>;
-
-def gi_as_i64imm : GICustomOperandRenderer<"renderImm">,
- GISDNodeXFormEquiv<as_i64imm>;
-
def gi_trailing_zero : GICustomOperandRenderer<"renderTrailingZeros">,
GISDNodeXFormEquiv<TrailingZeros>;
More information about the llvm-commits
mailing list