[PATCH] D151468: [RISCV] Use v(f)slide1up for shuffle+insert idiom

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 26 08:30:09 PDT 2023


reames updated this revision to Diff 526075.
reames added a comment.

Rebase over corrected tests, and fix one bug.  I'd forgotten to check that the entire tail was being written.  We could handle this via the pass through argument, but since we'd have to materialize the splat source it isn't profitable.  Instead, just limit the transform to avoid that case.  (see neg1 test)


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

https://reviews.llvm.org/D151468

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/test/CodeGen/RISCV/rvv/fixed-vector-shuffle-transpose.ll
  llvm/test/CodeGen/RISCV/rvv/fixed-vector-shuffle-vslide1up.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151468.526075.patch
Type: text/x-patch
Size: 11183 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230526/18b7d291/attachment.bin>


More information about the llvm-commits mailing list