[llvm] [RISCV][TTI] Recognize CONCAT_VECTORS if a shufflevector mask is multiple insert subvector. (PR #111459)

Han-Kuan Chen via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 16 21:39:46 PDT 2024


================
@@ -343,6 +343,52 @@ RISCVTTIImpl::getConstantPoolLoadCost(Type *Ty,  TTI::TargetCostKind CostKind) {
                              /*AddressSpace=*/0, CostKind);
 }
 
+InstructionCost
+RISCVTTIImpl::isMultipleInsertSubvector(VectorType *Tp, ArrayRef<int> Mask,
+                                        TTI::TargetCostKind CostKind) {
----------------
HanKuanChen wrote:

Are you saying that we should add this into `ShuffleVectorInst` and let `RISCVTTIImpl::getShuffleCost` call it?

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


More information about the llvm-commits mailing list