[llvm] [AMDGPU] Enable vectorization of i8 values. (PR #134934)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 9 07:32:53 PDT 2025
================
@@ -12971,9 +12971,16 @@ BoUpSLP::getEntryCost(const TreeEntry *E, ArrayRef<Value *> VectorizedVals,
LI0->getPointerAddressSpace(), CostKind);
} else {
- VecLdCost = TTI->getMemoryOpCost(
- Instruction::Load, VecTy, LI0->getAlign(),
- LI0->getPointerAddressSpace(), CostKind, TTI::OperandValueInfo());
+ if (VecTy->getElementType() ==
+ IntegerType::getInt8Ty(VecTy->getContext()) &&
+ TTI->canVectorizei8s()) {
----------------
alexey-bataev wrote:
Bad check, this should be here
https://github.com/llvm/llvm-project/pull/134934
More information about the llvm-commits
mailing list