[llvm] [AMDGPU] Enable vectorization of i8 values. (PR #134934)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 13 01:27:11 PDT 2025
================
@@ -344,9 +344,13 @@ unsigned GCNTTIImpl::getMinVectorRegisterBitWidth() const {
unsigned GCNTTIImpl::getMaximumVF(unsigned ElemWidth, unsigned Opcode) const {
if (Opcode == Instruction::Load || Opcode == Instruction::Store)
return 32 * 4 / ElemWidth;
- return (ElemWidth == 16 && ST->has16BitInsts()) ? 2
- : (ElemWidth == 32 && ST->hasPackedFP32Ops()) ? 2
- : 1;
+ // For a given width return the max 0number of elements that can be combined
+ // into a wider bit value:
+ bool isGFX8Plus = ST->getGeneration() >= AMDGPUSubtarget::VOLCANIC_ISLANDS;
----------------
arsenm wrote:
Don't do generation checks. This is already identical to has16BitInsts
https://github.com/llvm/llvm-project/pull/134934
More information about the llvm-commits
mailing list