From 6d60b39df5994f31e1da30634f195de8b6382869 Mon Sep 17 00:00:00 2001 From: Jeffrey Byrnes Date: Mon, 1 Jul 2024 16:22:21 -0700 Subject: [PATCH] Consistent reasoning in getMaximumVF Change-Id: I6e02e47b1e29458bf99d623488b29fd13ddb1b0b --- llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp b/llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp index e73df181c86221d..42eecbf69c216cd 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp @@ -351,7 +351,7 @@ unsigned GCNTTIImpl::getMaximumVF(unsigned ElemWidth, unsigned Opcode) const { return 32 * 4 / ElemWidth; return (ElemWidth == 8) ? 4 - : (ElemWidth == 16 && ST->has16BitInsts()) ? 2 + : (ElemWidth == 16) ? 2 : (ElemWidth == 32 && ST->hasPackedFP32Ops()) ? 2 : 1; }