[llvm] [NVPTX][TTI] Update NVPTX TTI to enable f32x2 vectorization (PR #222994)
Daniel Donenfeld via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 5 15:03:32 PDT 2026
================
@@ -498,6 +498,57 @@ NVPTXTTIImpl::getInstructionCost(const User *U,
return BaseT::getInstructionCost(U, Operands, CostKind);
}
+static bool isV2F32Ty(Type *Ty) {
+ // PTX has native packed arithmetic for pairs of f32 values.
----------------
daniel-donenfeld wrote:
I updated this helper to also check if f32x2 instructions are supported (and enabled), and updated the SLP lit test to show the difference between sm90 and sm100
https://github.com/llvm/llvm-project/pull/222994
More information about the llvm-commits
mailing list