Skip to content

Commit c74cc73

Browse files
authored
[RISCV] Move VLDSX0Pred from RISCVSchedSiFive7.td to RISCVScheduleV.td. NFC (#106671)
This predicate isn't bound to the scheduler model and and we may want to reuse it in the future. We already moved it to reuse it in our downstream.
1 parent 27e244f commit c74cc73

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

llvm/lib/Target/RISCV/RISCVSchedSiFive7.td

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -479,10 +479,6 @@ foreach mx = SchedMxList in {
479479
// resource, we do not need to use LMULSEWXXX constructors. However, we do
480480
// use the SEW from the name to determine the number of Cycles.
481481

482-
// This predicate is true when the rs2 operand of vlse or vsse is x0, false
483-
// otherwise.
484-
def VLDSX0Pred : MCSchedPredicate<CheckRegOperand<3, X0>>;
485-
486482
foreach mx = SchedMxList in {
487483
defvar VLDSX0Cycles = SiFive7GetCyclesDefault<mx>.c;
488484
defvar Cycles = SiFive7GetCyclesOnePerElement<mx, 8>.c;

llvm/lib/Target/RISCV/RISCVScheduleV.td

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
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+
1216
defvar SchedMxList = ["MF8", "MF4", "MF2", "M1", "M2", "M4", "M8"];
1317
// Used for widening and narrowing instructions as it doesn't contain M8.
1418
defvar SchedMxListW = !listremove(SchedMxList, ["M8"]);

0 commit comments

Comments
 (0)