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

Michael Maitland via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 21 15:01:24 PDT 2023


michaelmaitland created this revision.
michaelmaitland added reviewers: craig.topper, reames, wangpc.
Herald added subscribers: jobnoorman, luke, VincentWu, vkmr, frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya, arichardson.
Herald added a project: All.
michaelmaitland requested review of this revision.
Herald added subscribers: llvm-commits, eopXD, MaskRay.
Herald added a project: LLVM.

Since the scheduling resources for reductions and ordered reductions now
account for LMUL and SEW, we can modify the Latency and ResourceCycles
for these resoruces.

- Most reductions take a total of approx `vl*SEW/DLEN + 5*(4 + log2(DLEN/SEW))` cycles.
- Ordered floating-point reductions take a total of approx `5*vl` cycles.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D153474

Files:
  llvm/lib/Target/RISCV/RISCVSchedSiFive7.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153474.533415.patch
Type: text/x-patch
Size: 4354 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230621/eda22906/attachment.bin>


More information about the llvm-commits mailing list