Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion llvm/lib/Target/RISCV/RISCVInstrPredicates.td
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@

// This predicate is true when the rs2 operand of vlse or vsse is x0, false
// otherwise.
def VLDSX0Pred : MCSchedPredicate<CheckRegOperand<3, X0>>;
// Note: in our pseudo RVV MachinInstr, rs2 is the fourth operand. However,
// it's the third operand of its MCInst form, so this predicate will not
// be triggered by llvm-mca, which checks against MCInst.
def VLDSX0Pred
: AllOfSchedPreds<[FeatureSchedPredicate<TuneOptimizedZeroStrideLoad>,
MCSchedPredicate<CheckRegOperand<3, X0>>]>;

// This scheduling predicate is true when subtarget feature TuneHasSingleElementVecFP64
// is enabled.
Expand Down
Loading