[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
Thu Oct 17 01:01:20 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:

please check https://github.com/llvm/llvm-project/pull/111459/commits/39c1368f9cfa6540da97bc2f2bc4f3d60b5e7ac2

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


More information about the llvm-commits mailing list