Skip to content

Commit 4e2d11f

Browse files
authored
[RISCV] Remove unnecessary NoHasStdExtZicfiss Predicate from cmop.1 and cmop.5. NFC (#88822)
I'm not sure what this was supposed do. Maybe it was for the disassembler, but that should be managed through DecoderNamespace. So let's remove it and simplify the code.
1 parent 65b0cc6 commit 4e2d11f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoZcmop.td

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,7 @@ class CMOPInst<bits<3> imm3, string opcodestr>
2020
let Inst{12-11} = 0;
2121
}
2222

23-
// CMOP1, CMOP5 is used by Zicfiss.
24-
let Predicates = [HasStdExtZcmop, NoHasStdExtZicfiss] in {
25-
def CMOP1 : CMOPInst<0, "cmop.1">, Sched<[]>;
26-
def CMOP5 : CMOPInst<2, "cmop.5">, Sched<[]>;
27-
}
28-
29-
foreach n = [3, 7, 9, 11, 13, 15] in {
23+
foreach n = [1, 3, 5, 7, 9, 11, 13, 15] in {
3024
let Predicates = [HasStdExtZcmop] in
3125
def CMOP # n : CMOPInst<!srl(n, 1), "cmop." # n>, Sched<[]>;
3226
}

0 commit comments

Comments
 (0)