[Mlir-commits] [mlir] [mlir][vector] Fix parser of vector.transfer_read (PR #133721)

Longsheng Mou llvmlistbot at llvm.org
Tue Apr 1 18:23:44 PDT 2025


================
@@ -4260,6 +4264,11 @@ ParseResult TransferReadOp::parse(OpAsmParser &parser, OperationState &result) {
   AffineMap permMap;
   if (!permMapAttr) {
     permMap = getTransferMinorIdentityMap(shapedType, vectorType);
+    if (!permMap) {
+      return parser.emitError(typesLoc,
+                              "expected the same rank for the vector and the "
----------------
CoTinker wrote:

Actually not same rank, `shapedType.getRank() >= vectorType.getRank() - elementVectorRank`

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


More information about the Mlir-commits mailing list