[Mlir-commits] [mlir] Fix unsupported transpose ops for scalable vectors in LowerVectorTransfer (PR #86163)

Benjamin Maxwell llvmlistbot at llvm.org
Fri Mar 22 04:29:58 PDT 2024


================
@@ -269,7 +280,7 @@ struct TransferWriteNonPermutationLowering
                                     missingInnerDim.size());
     // Mask: add unit dims at the end of the shape.
     Value newMask;
-    if (op.getMask())
+    if (op.getMask() && !op.getVectorType().isScalable())
----------------
MacDue wrote:


Why can the mask be omitted for scalable vectors? I see the input test case is also masked, but the new `vector.transfer_write` is unmasked.

https://github.com/llvm/llvm-project/pull/86163


More information about the Mlir-commits mailing list