Skip to content

Commit 0e3fba8

Browse files
authored
[RISCV] Remove Match_InvalidXSfmmVType. NFC (#168465)
It's not reachable because the custom parser will accept or fail the whole instruction.
1 parent d464c99 commit 0e3fba8

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1654,10 +1654,6 @@ bool RISCVAsmParser::matchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
16541654
return generateImmOutOfRangeError(
16551655
Operands, ErrorInfo, -1, (1 << 5) - 1,
16561656
"immediate must be non-zero in the range");
1657-
case Match_InvalidXSfmmVType: {
1658-
SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1659-
return generateXSfmmVTypeError(ErrorLoc);
1660-
}
16611657
case Match_InvalidVTypeI: {
16621658
SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
16631659
return generateVTypeError(ErrorLoc);

llvm/lib/Target/RISCV/RISCVInstrInfoXSfmm.td

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
def XSfmmVTypeAsmOperand : AsmOperandClass {
1414
let Name = "XSfmmVType";
1515
let ParserMethod = "parseXSfmmVType";
16-
let DiagnosticType = "InvalidXSfmmVType";
1716
let RenderMethod = "addVTypeIOperands";
1817
}
1918

0 commit comments

Comments
 (0)