diff --git a/mlir/test/Dialect/Vector/canonicalize.mlir b/mlir/test/Dialect/Vector/canonicalize.mlir index 04518a56c3dd2..89af0f7332f5c 100644 --- a/mlir/test/Dialect/Vector/canonicalize.mlir +++ b/mlir/test/Dialect/Vector/canonicalize.mlir @@ -818,11 +818,11 @@ func.func @fold_extract_shapecast_negative(%arg0 : vector<16xf32>) -> vector<4x2 // ----- -// CHECK-LABEL: canonicalize_extract_shapecast_to_shapecast +// CHECK-LABEL: fold_extract_shapecast_to_shapecast // CHECK-SAME: (%[[ARG:.+]]: vector<3x4xf32>) // CHECK: %[[R:.+]] = vector.shape_cast %[[ARG]] : vector<3x4xf32> to vector<12xf32> // CHECK: return %[[R]] -func.func @canonicalize_extract_shapecast_to_shapecast(%arg0 : vector<3x4xf32>) -> vector<12xf32> { +func.func @fold_extract_shapecast_to_shapecast(%arg0 : vector<3x4xf32>) -> vector<12xf32> { %0 = vector.shape_cast %arg0 : vector<3x4xf32> to vector<1x12xf32> %r = vector.extract %0[0] : vector<12xf32> from vector<1x12xf32> return %r : vector<12xf32>