[Mlir-commits] [mlir] [mlir] Fix StridedMemRefRankOf to check isStrided() (PR #201415)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Jun 19 06:37:24 PDT 2026


================
@@ -307,6 +307,14 @@ func.func @sparse_push_back_n(%arg0: index, %arg1: memref<?xf32>, %arg2: f32) ->
 
 // -----
 
+func.func @sparse_push_back_non_strided(%arg0: index, %arg1: memref<?xf64, affine_map<(d0) -> (d0 mod 2)>>, %arg2: f64) {
+  // expected-error at +1 {{'sparse_tensor.push_back' op operand #1 must be 1D memref of any type values, but got 'memref<?xf64, affine_map<(d0) -> (d0 mod 2)>>'}}
----------------
ConvolutedDog wrote:

Thanks for the review! I've updated the diagnostic in a new commit and also adjusted the test case accordingly. PTAL.

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


More information about the Mlir-commits mailing list