Skip to content

Commit 0d4011a

Browse files
committed
Consistent reasoning in getMaximumVF
Change-Id: I6e02e47b1e29458bf99d623488b29fd13ddb1b0b
1 parent eb89053 commit 0d4011a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ unsigned GCNTTIImpl::getMaximumVF(unsigned ElemWidth, unsigned Opcode) const {
351351
return 32 * 4 / ElemWidth;
352352

353353
return (ElemWidth == 8) ? 4
354-
: (ElemWidth == 16 && ST->has16BitInsts()) ? 2
354+
: (ElemWidth == 16) ? 2
355355
: (ElemWidth == 32 && ST->hasPackedFP32Ops()) ? 2
356356
: 1;
357357
}

0 commit comments

Comments
 (0)