Skip to content

Commit 9cd8884

Browse files
committed
[RISCV] Remove unused MCOperandPredicate from simm12_lsb00000. NFC
I don't think the use of isBareSymbolRef() was correct since we don't have any relocations associated with this instruction type.
1 parent 2e3c317 commit 9cd8884

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoZicbo.td

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@ def simm12_lsb00000 : RISCVOp,
2121
let ParserMatchClass = SImmAsmOperand<12, "Lsb00000">;
2222
let EncoderMethod = "getImmOpValue";
2323
let DecoderMethod = "decodeSImmOperand<12>";
24-
let MCOperandPredicate = [{
25-
int64_t Imm;
26-
if (MCOp.evaluateAsConstantImm(Imm))
27-
return isShiftedInt<7, 5>(Imm);
28-
return MCOp.isBareSymbolRef();
29-
}];
3024
let OperandType = "OPERAND_SIMM12_LSB00000";
3125
}
3226

0 commit comments

Comments
 (0)