[llvm] fc3ec13 - [RISCV][GISel] Remove unused function leftover from a removed SDNodeXForm. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 3 11:02:35 PST 2025


Author: Craig Topper
Date: 2025-02-03T11:01:57-08:00
New Revision: fc3ec135d34cd02ccaf5f7d987f308791fdb6815

URL: https://github.com/llvm/llvm-project/commit/fc3ec135d34cd02ccaf5f7d987f308791fdb6815
DIFF: https://github.com/llvm/llvm-project/commit/fc3ec135d34cd02ccaf5f7d987f308791fdb6815.diff

LOG: [RISCV][GISel] Remove unused function leftover from a removed SDNodeXForm. NFC

Fixes #125551

Added: 
    

Modified: 
    llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp b/llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp
index 3f1539da4a9c848..6a42fdf3c35672a 100644
--- a/llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp
+++ b/llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp
@@ -128,8 +128,6 @@ class RISCVInstructionSelector : public InstructionSelector {
                           int OpIdx) const;
   void renderImmPlus1(MachineInstrBuilder &MIB, const MachineInstr &MI,
                       int OpIdx) const;
-  void renderImm(MachineInstrBuilder &MIB, const MachineInstr &MI,
-                 int OpIdx) const;
   void renderFrameIndex(MachineInstrBuilder &MIB, const MachineInstr &MI,
                         int OpIdx) const;
 
@@ -837,15 +835,6 @@ void RISCVInstructionSelector::renderImmPlus1(MachineInstrBuilder &MIB,
   MIB.addImm(CstVal + 1);
 }
 
-void RISCVInstructionSelector::renderImm(MachineInstrBuilder &MIB,
-                                         const MachineInstr &MI,
-                                         int OpIdx) const {
-  assert(MI.getOpcode() == TargetOpcode::G_CONSTANT && OpIdx == -1 &&
-         "Expected G_CONSTANT");
-  int64_t CstVal = MI.getOperand(1).getCImm()->getSExtValue();
-  MIB.addImm(CstVal);
-}
-
 void RISCVInstructionSelector::renderFrameIndex(MachineInstrBuilder &MIB,
                                                 const MachineInstr &MI,
                                                 int OpIdx) const {


        


More information about the llvm-commits mailing list