diff --git a/mlir/test/Dialect/Linalg/tile-and-fuse-on-tensors.mlir b/mlir/test/Dialect/Linalg/tile-and-fuse-on-tensors.mlir --- a/mlir/test/Dialect/Linalg/tile-and-fuse-on-tensors.mlir +++ b/mlir/test/Dialect/Linalg/tile-and-fuse-on-tensors.mlir @@ -234,16 +234,16 @@ // CHECK-DAG: #[[MAP0:.*]] = affine_map<(d0, d1) -> (d0 + d1)> // CHECK-DAG: #[[MAP1:.*]] = affine_map<(d0, d1) -> (8, -d0 - d1 + 17)> -// CHECK-DAG: #[[MAP2:.*]] = affine_map<(d0, d1, d2) -> (d0, -d1 - d2 + 18)> +// CHECK-DAG: #[[MAP2:.*]] = affine_map<(d0, d1, d2) -> (d0, -d1 - d2 + 17)> #map0 = affine_map<(d0, d1) -> (d0, d0 + d1)> #map1 = affine_map<(d0, d1) -> (d0, d1)> // CHECK: fuse_non_rectangular -// CHECK-SAME: %[[ARG0:[0-9a-zA-Z]*]]: tensor<10x18xf32> -func @fuse_non_rectangular(%arg0: tensor<10x18xf32>, +// CHECK-SAME: %[[ARG0:[0-9a-zA-Z]*]]: tensor<10x17xf32> +func @fuse_non_rectangular(%arg0: tensor<10x17xf32>, %arg1: tensor<10x8xf32>) -> tensor<10x8xf32> { %cst = constant 0.000000e+00 : f32 - %0 = linalg.fill(%cst, %arg0) : f32, tensor<10x18xf32> -> tensor<10x18xf32> + %0 = linalg.fill(%cst, %arg0) : f32, tensor<10x17xf32> -> tensor<10x17xf32> // CHECK: scf.for %[[IV0:[0-9a-zA-Z]*]] = %c0 to %c8 step %c4 // CHECK: scf.for %[[IV1:[0-9a-zA-Z]*]] = %c0 to %c10 step %c5 @@ -259,7 +259,7 @@ // CHECK-SAME: %[[IV1]], %[[SUM]] // CHECK-SAME: , %[[UB1]] // CHECK: %[[T1:.*]] = linalg.fill(%{{.*}}, %[[T0]]) - %1 = linalg.generic {indexing_maps = [#map0, #map1], iterator_types = ["parallel", "parallel"]} ins(%0 : tensor<10x18xf32>) outs(%arg1 : tensor<10x8xf32>) { + %1 = linalg.generic {indexing_maps = [#map0, #map1], iterator_types = ["parallel", "parallel"]} ins(%0 : tensor<10x17xf32>) outs(%arg1 : tensor<10x8xf32>) { ^bb0(%arg2: f32, %arg3: f32): // no predecessors %2 = addf %arg2, %arg3 : f32 linalg.yield %2 : f32