[llvm] [AArch64][CostModel] Lower cost of dupq (SVE2.1) (PR #144918)
Sander de Smalen via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 20 06:59:11 PDT 2025
================
@@ -5583,6 +5583,26 @@ InstructionCost AArch64TTIImpl::getShuffleCost(
Kind = TTI::SK_PermuteSingleSrc;
}
+ // Segmented shuffle matching.
+ if (ST->hasSVE2p1() && CostKind == TTI::TCK_RecipThroughput &&
+ Kind == TTI::SK_PermuteSingleSrc && isa<FixedVectorType>(Tp) &&
+ Tp->getPrimitiveSizeInBits().isKnownMultipleOf(128)) {
----------------
sdesmalen-arm wrote:
nit: please use `AArch64::SVEBitsPerBlock` instead of hard-coding 128.
https://github.com/llvm/llvm-project/pull/144918
More information about the llvm-commits
mailing list