[PATCH] D153474: [RISCV] Improve SiFive7 for reductions and ordered reductions

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 21 21:46:32 PDT 2023


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVSchedSiFive7.td:669
+    let Latency = Cycles, ResourceCycles = [Cycles] in
+      defm "" : LMULSEWWriteResMXSEW<"WriteVIRedV_From", [SiFive7VA],
+                                     mx, sew, IsWorstCase>;
----------------
I don't think we usually indent after a `let` if the `let` doesn't use braces.


================
Comment at: llvm/lib/Target/RISCV/RISCVSchedSiFive7.td:696
+      // FIXME: this is wrong and needs to be fixed in this patch
+      defm "" : LMULSEWWriteResMXSEW<"WriteVFRedMinMaxV_From", [SiFive7VA],
+                                     mx, sew, IsWorstCase>;
----------------
I think this has no Latency or ResourceCycles attached to it? The previous let did not create a scope


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D153474/new/

https://reviews.llvm.org/D153474



More information about the llvm-commits mailing list