[llvm] [SLPVectorizer][NVPTX] Customize getBuildVectorCost for NVPTX (PR #128077)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 21 11:03:35 PST 2025
================
@@ -10203,6 +10203,9 @@ class BoUpSLP::ShuffleCostEstimator : public BaseShuffleAnalysis {
if ((!Root && allConstant(VL)) || all_of(VL, IsaPred<UndefValue>))
return TTI::TCC_Free;
auto *VecTy = getWidenedType(ScalarTy, VL.size());
+ if (auto Cost = TTI.getBuildVectorCost(VecTy, VL, CostKind);
----------------
peterbell10 wrote:
Thanks, that's exactly what I was looking for!
https://github.com/llvm/llvm-project/pull/128077
More information about the llvm-commits
mailing list