Skip to content

Commit 27c3c6c

Browse files
committed
[RISCV] Use !listremove for LMUL lists in V scheduling info [nfc]
Using listremove makes it easier to confirm that the code matches the comments. The only in tree users of these lists are not order sensative.
1 parent ce32e05 commit 27c3c6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Target/RISCV/RISCVScheduleV.td

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
defvar UpperBoundLMUL = "UpperBound";
1313
defvar SchedMxList = ["UpperBound", "M1", "M2", "M4", "M8", "MF2", "MF4", "MF8"];
1414
// Used for widening and narrowing instructions as it doesn't contain M8.
15-
defvar SchedMxListW = ["UpperBound", "MF8", "MF4", "MF2", "M1", "M2", "M4"];
16-
defvar SchedMxListFW = ["UpperBound", "MF4", "MF2", "M1", "M2", "M4"];
15+
defvar SchedMxListW = !listremove(SchedMxList, ["M8"]);
16+
defvar SchedMxListFW = !listremove(SchedMxList, ["M8", "MF8"]);
1717
// Used for widening floating-point Reduction as it doesn't contain MF8.
18-
defvar SchedMxListFWRed = ["UpperBound", "MF4", "MF2", "M1", "M2", "M4", "M8"];
18+
defvar SchedMxListFWRed = !listremove(SchedMxList, ["MF8"]);
1919

2020
// Define multiclasses to define SchedWrite, SchedRead, WriteRes, and
2121
// ReadAdvance for each (name, LMUL) pair for each LMUL in each of the

0 commit comments

Comments
 (0)