Skip to content

Commit fc3ec13

Browse files
committed
[RISCV][GISel] Remove unused function leftover from a removed SDNodeXForm. NFC
Fixes #125551
1 parent e8100c3 commit fc3ec13

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,6 @@ class RISCVInstructionSelector : public InstructionSelector {
128128
int OpIdx) const;
129129
void renderImmPlus1(MachineInstrBuilder &MIB, const MachineInstr &MI,
130130
int OpIdx) const;
131-
void renderImm(MachineInstrBuilder &MIB, const MachineInstr &MI,
132-
int OpIdx) const;
133131
void renderFrameIndex(MachineInstrBuilder &MIB, const MachineInstr &MI,
134132
int OpIdx) const;
135133

@@ -837,15 +835,6 @@ void RISCVInstructionSelector::renderImmPlus1(MachineInstrBuilder &MIB,
837835
MIB.addImm(CstVal + 1);
838836
}
839837

840-
void RISCVInstructionSelector::renderImm(MachineInstrBuilder &MIB,
841-
const MachineInstr &MI,
842-
int OpIdx) const {
843-
assert(MI.getOpcode() == TargetOpcode::G_CONSTANT && OpIdx == -1 &&
844-
"Expected G_CONSTANT");
845-
int64_t CstVal = MI.getOperand(1).getCImm()->getSExtValue();
846-
MIB.addImm(CstVal);
847-
}
848-
849838
void RISCVInstructionSelector::renderFrameIndex(MachineInstrBuilder &MIB,
850839
const MachineInstr &MI,
851840
int OpIdx) const {

0 commit comments

Comments
 (0)