Skip to content

Commit

Permalink
Consistent reasoning in getMaximumVF
Browse files Browse the repository at this point in the history
Change-Id: I6e02e47b1e29458bf99d623488b29fd13ddb1b0b
  • Loading branch information
jrbyrnes committed Jul 1, 2024
1 parent b503e21 commit 6d60b39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6d60b39

Please sign in to comment.