[llvm] [AArch64][CostModel] Lower cost of dupq (SVE2.1) (PR #144918)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 23 08:42:40 PDT 2025
================
@@ -5599,6 +5599,23 @@ AArch64TTIImpl::getShuffleCost(TTI::ShuffleKind Kind, VectorType *DstTy,
SrcTy = DstTy;
}
+ // Segmented shuffle matching.
+ if ((ST->hasSVE2p1() ||
----------------
davemgreen wrote:
Check !Mask.empty() too, in case it is not passed in.
https://github.com/llvm/llvm-project/pull/144918
More information about the llvm-commits
mailing list