diff --git a/mlir/test/Dialect/Linalg/vectorization.mlir b/mlir/test/Dialect/Linalg/vectorization.mlir --- a/mlir/test/Dialect/Linalg/vectorization.mlir +++ b/mlir/test/Dialect/Linalg/vectorization.mlir @@ -1459,15 +1459,14 @@ // ----- #map0 = affine_map<(d0, d1, d2, d3) -> (d0, d2)> -#map1 = affine_map<(d0, d1, d2, d3) -> (d0, d1, d3)> -#map2 = affine_map<(d0, d1, d2, d3) -> (d0, d1, d2, d3)> -func.func @vectorize_1d_tensor_extract(%arg0: tensor<3xf32>, %arg1: tensor<4x3xi32>, %arg2: tensor<4x7x2xf32>, %arg3: tensor<4x7x3x2xf32>) -> tensor<4x7x3x2xf32> { +#map1 = affine_map<(d0, d1, d2, d3) -> (d0, d1, d2, d3)> +func.func @vectorize_1d_tensor_extract(%arg0: tensor<3xf32>, %arg1: tensor<4x3xi32>, %arg2: tensor<4x7x3x2xf32>) -> tensor<4x7x3x2xf32> { %2 = linalg.generic { - indexing_maps = [#map0, #map1, #map2], + indexing_maps = [#map0, #map1], iterator_types = ["parallel", "parallel", "parallel", "parallel"] - } ins(%arg1, %arg2 : tensor<4x3xi32>, tensor<4x7x2xf32>) outs(%arg3 : tensor<4x7x3x2xf32>) { - ^bb0(%arg4: i32, %arg5: f32, %arg6: f32): - %3 = arith.index_cast %arg4 : i32 to index + } ins(%arg1 : tensor<4x3xi32>) outs(%arg2 : tensor<4x7x3x2xf32>) { + ^bb0(%arg3: i32, %arg4: f32): + %3 = arith.index_cast %arg3 : i32 to index %7 = tensor.extract %arg0[%3] : tensor<3xf32> linalg.yield %7 : f32 } -> tensor<4x7x3x2xf32>