Skip to content

Commit aeb5a58

Browse files
authored
[RISCV][NFC] Move VLDSX0Pred to RISCVInstrPredicates.td (#137938)
`VLDSX0Pred` is used for scheduling vector zero-stride load/store.
1 parent f7991aa commit aeb5a58

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

llvm/lib/Target/RISCV/RISCVInstrPredicates.td

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
// This predicate is true when the rs2 operand of vlse or vsse is x0, false
14+
// otherwise.
15+
def VLDSX0Pred : MCSchedPredicate<CheckRegOperand<3, X0>>;
16+
1317
// Returns true if this is the sext.w pattern, addiw rd, rs1, 0.
1418
def isSEXT_W
1519
: TIIPredicate<"isSEXT_W",

llvm/lib/Target/RISCV/RISCVScheduleV.td

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
//===----------------------------------------------------------------------===//
1010
/// Define scheduler resources associated with def operands.
1111

12-
// This predicate is true when the rs2 operand of vlse or vsse is x0, false
13-
// otherwise.
14-
def VLDSX0Pred : MCSchedPredicate<CheckRegOperand<3, X0>>;
15-
1612
defvar SchedMxList = ["MF8", "MF4", "MF2", "M1", "M2", "M4", "M8"];
1713
// Used for widening and narrowing instructions as it doesn't contain M8.
1814
defvar SchedMxListW = !listremove(SchedMxList, ["M8"]);

0 commit comments

Comments
 (0)