[llvm] [SLP]Initial support for non-power-of-2 (but still whole register) number of elements in operands. (PR #106449)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 29 04:51:08 PDT 2024
================
@@ -4331,7 +4364,7 @@ BoUpSLP::findReusedOrderedScalars(const BoUpSLP::TreeEntry &TE) {
if (!isValidElementType(ScalarTy))
return std::nullopt;
auto *VecTy = getWidenedType(ScalarTy, NumScalars);
- int NumParts = TTI->getNumberOfParts(VecTy);
+ int NumParts = TTI->getRegUsageForType(VecTy);
----------------
alexey-bataev wrote:
In some places - yes. The reshuffling of the buildvector/gather nodes is based on register/parts shuffling. But in other places (where it checks for full register usage etc.) it will be removed later
https://github.com/llvm/llvm-project/pull/106449
More information about the llvm-commits
mailing list