[llvm] [AMDGPU] Extend type support for update_dpp intrinsic (PR #114597)
Stanislav Mekhanoshin via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 4 15:50:55 PST 2024
================
@@ -5534,31 +5548,27 @@ bool AMDGPULegalizerInfo::legalizeLaneOp(LegalizerHelper &Helper,
return true;
}
- if (Size % 32 != 0)
+ if (Size % SplitSize != 0)
return false;
- LLT PartialResTy = S32;
+ LLT PartialResTy = LLT::scalar(SplitSize);
if (Ty.isVector()) {
LLT EltTy = Ty.getElementType();
- switch (EltTy.getSizeInBits()) {
- case 16:
- PartialResTy = Ty.changeElementCount(ElementCount::getFixed(2));
- break;
- case 32:
+ unsigned EltSize = EltTy.getSizeInBits();
+ if (EltSize == SplitSize)
PartialResTy = EltTy;
- break;
- default:
- // Handle all other cases via S32 pieces;
- break;
- }
+ else if (EltSize == 16 || EltSize == 32)
----------------
rampitec wrote:
Done
https://github.com/llvm/llvm-project/pull/114597
More information about the llvm-commits
mailing list