[llvm] [RISCV] Factor out the core part of LMULWriteResMXVariant. NFC (PR #162347)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 7 12:31:26 PDT 2025


================
@@ -567,9 +567,12 @@ multiclass SiFive7WriteResBase<int VLEN,
     defvar VLDSX0Cycles = SiFive7GetCyclesDefault<mx>.c;
     defvar Cycles = SiFive7GetCyclesOnePerElement<mx, 8, VLEN>.c;
     defvar IsWorstCase = SiFive7IsWorstCaseMX<mx, SchedMxList>.c;
-    defm  : LMULWriteResMXVariant<"WriteVLDS8",  VLDSX0Pred, [VCQ, VL],
-                                         4, [0, 1], [1, !add(1, VLDSX0Cycles)], !add(3, Cycles),
-                                         [0, 1], [1, !add(1, Cycles)], mx, IsWorstCase>;
+    defm  : LMULWriteResMXVariant<"WriteVLDS8",  VLDSX0Pred,
----------------
topperc wrote:

Is this just formatting and adding comments?

https://github.com/llvm/llvm-project/pull/162347


More information about the llvm-commits mailing list