[PATCH] D151390: [RISCV] Don't reduce vslidedown's VL in rotations

Luke Lau via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 24 16:54:55 PDT 2023


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

Even though we only need to write to the bottom NumElts - Rotation
elements for the vslidedown.vi, we can save an extra vsetivli toggle if
we just keep the wide VL.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D151390

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/test/CodeGen/RISCV/rvv/fixed-vector-shuffle-reverse.ll
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-fp-shuffles.ll
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-int-shuffles.ll
  llvm/test/CodeGen/RISCV/rvv/shuffle-reverse.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151390.525373.patch
Type: text/x-patch
Size: 14463 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230524/95413757/attachment.bin>


More information about the llvm-commits mailing list