[Mlir-commits] [mlir] [mlir][linalg] Add support for scalable vectorization of linalg.mmt4d (PR #146531)
Andrzej WarzyĆski
llvmlistbot at llvm.org
Tue Jul 15 03:00:05 PDT 2025
================
@@ -470,6 +485,21 @@ Value VectorizationState::getOrCreateMaskFor(
return Value();
}
+ if (assumeScalableVecSizesMatchDimSize) {
+ // Given that all _scalable vector sizes_ match the corresponding
+ // memref/tensor dim sizes, masking can be skipped provided that:
+ // * all vector sizes corresponding to dynamic dims are scalable.
+ if (llvm::all_of(llvm::zip(permutedStaticSizes, maskType.getScalableDims()),
+ [](auto it) {
+ return std::get<0>(it) == ShapedType::kDynamic
+ ? std::get<1>(it)
+ : false;
----------------
banach-space wrote:
Fixed in this [commit](https://github.com/llvm/llvm-project/pull/146531/commits/1ec6935800afaa3527746297bdc8b8485459e534).
https://github.com/llvm/llvm-project/pull/146531
More information about the Mlir-commits
mailing list