[llvm] [RISCV] Model interleave2 and deinterleave2 costs with Zvzip (PR #225752)
Pengcheng Wang via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 23 19:50:53 PDT 2026
================
@@ -733,6 +733,54 @@ InstructionCost RISCVTTIImpl::getSlideCost(FixedVectorType *Tp,
return FirstSlideCost + SecondSlideCost + MaskCost;
}
+/// Return the type used to cost vzip.vv, whose LMUL represents the
+/// interleaved destination EMUL. Return std::nullopt if illegal.
+static std::optional<MVT> getZvzipVZIPCostVT(MVT InterleavedVT,
----------------
wangpc-pp wrote:
Make them methods in RISCVTTIImpl? Then we don't need to pass RISCVSubtarget and RISCVTargetLowering.
https://github.com/llvm/llvm-project/pull/225752
More information about the llvm-commits
mailing list