[Mlir-commits] [mlir] [mlir][Vector] Update patterns for flattening vector.xfer Ops (1/N) (PR #73522)

Nicolas Vasilache llvmlistbot at llvm.org
Thu Nov 30 12:13:10 PST 2023


================
@@ -54,11 +121,8 @@ func.func @transfer_read_0d(%arg : memref<i8>) -> vector<i8> {
       return %0 : vector<i8>
 }
 
-// CHECK-LABEL: func @transfer_read_0d
-// CHECK-SAME:       %[[ARG:.+]]: memref<i8>
-// CHECK:            %[[CST:.+]] = arith.constant 0 : i8
-// CHECK:            %[[READ:.+]] = vector.transfer_read %[[ARG]][], %[[CST]] : memref<i8>
-// CHECK:            return %[[READ]]
+// CHECK-NOT: memref.collapse_shape
----------------
nicolasvasilache wrote:

this seems fine to me, we're checking no collapse_shape has been introduced which si more in line with the other checks.

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


More information about the Mlir-commits mailing list