Skip to content

Commit e3419a9

Browse files
committed
canonicalize -> fold
1 parent 1ea6677 commit e3419a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/test/Dialect/Vector/canonicalize.mlir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -818,11 +818,11 @@ func.func @fold_extract_shapecast_negative(%arg0 : vector<16xf32>) -> vector<4x2
818818

819819
// -----
820820

821-
// CHECK-LABEL: canonicalize_extract_shapecast_to_shapecast
821+
// CHECK-LABEL: fold_extract_shapecast_to_shapecast
822822
// CHECK-SAME: (%[[ARG:.+]]: vector<3x4xf32>)
823823
// CHECK: %[[R:.+]] = vector.shape_cast %[[ARG]] : vector<3x4xf32> to vector<12xf32>
824824
// CHECK: return %[[R]]
825-
func.func @canonicalize_extract_shapecast_to_shapecast(%arg0 : vector<3x4xf32>) -> vector<12xf32> {
825+
func.func @fold_extract_shapecast_to_shapecast(%arg0 : vector<3x4xf32>) -> vector<12xf32> {
826826
%0 = vector.shape_cast %arg0 : vector<3x4xf32> to vector<1x12xf32>
827827
%r = vector.extract %0[0] : vector<12xf32> from vector<1x12xf32>
828828
return %r : vector<12xf32>

0 commit comments

Comments
 (0)