[llvm] [RISCV] Add cost modeling for Zvzip 0.3 (PR #224991)

Pengcheng Wang via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 20 23:16:20 PDT 2026


================
@@ -229,6 +229,26 @@ LLVM_ABI bool getShuffleDemandedElts(int SrcWidth, ArrayRef<int> Mask,
 LLVM_ABI bool isMaskedSlidePair(ArrayRef<int> Mask, int NumElts,
                                 std::array<std::pair<int, int>, 2> &SrcInfo);
 
+/// Given a shuffle which can be represented as a pair of two slides, return
----------------
wangpc-pp wrote:

AArch64 has similar instructions (and similar helpers in `llvm/lib/Target/AArch64/AArch64PerfectShuffle.h`). So I hope it can be reused. :-)

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


More information about the llvm-commits mailing list