Skip to content

Commit 873b055

Browse files
committed
Fix wrong replacement
1 parent 6e8e3dc commit 873b055

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

mlir/test/Dialect/Vector/vector-warp-distribute.mlir

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,7 @@ func.func @warp_execute_nd_distribute(%laneid: index, %v0: vector<1x64x1xf32>, %
11421142

11431143
// CHECK-PROP: #[[$MAP:.*]] = affine_map<()[s0] -> (s0 ceildiv 3)>
11441144
// CHECK-PROP: #[[$MAP1:.*]] = affine_map<()[s0] -> (s0 mod 3)>
1145-
// CHECK-PROP-LABEL: func @_1d(
1145+
// CHECK-PROP-LABEL: func @vector_insert_1d(
11461146
// CHECK-PROP-SAME: %[[LANEID:.*]]: index, %[[POS:.*]]: index
11471147
// CHECK-PROP: %[[W:.*]]:2 = gpu.warp_execute_on_lane_0{{.*}} -> (vector<3xf32>, f32)
11481148
// CHECK-PROP: %[[INSERTING_LANE:.*]] = affine.apply #[[$MAP]]()[%[[POS]]]
@@ -1155,7 +1155,7 @@ func.func @warp_execute_nd_distribute(%laneid: index, %v0: vector<1x64x1xf32>, %
11551155
// CHECK-PROP: scf.yield %[[W]]#0
11561156
// CHECK-PROP: }
11571157
// CHECK-PROP: return %[[R]]
1158-
func.func @_1d(%laneid: index, %pos: index) -> (vector<3xf32>) {
1158+
func.func @vector_insert_1d(%laneid: index, %pos: index) -> (vector<3xf32>) {
11591159
%r = gpu.warp_execute_on_lane_0(%laneid)[32] -> (vector<3xf32>) {
11601160
%0 = "some_def"() : () -> (vector<96xf32>)
11611161
%f = "another_def"() : () -> (f32)
@@ -1167,14 +1167,14 @@ func.func @_1d(%laneid: index, %pos: index) -> (vector<3xf32>) {
11671167

11681168
// -----
11691169

1170-
// CHECK-PROP-LABEL: func @_1d_broadcast(
1170+
// CHECK-PROP-LABEL: func @vector_insert_1d_broadcast(
11711171
// CHECK-PROP-SAME: %[[LANEID:.*]]: index, %[[POS:.*]]: index
11721172
// CHECK-PROP: %[[W:.*]]:2 = gpu.warp_execute_on_lane_0{{.*}} -> (vector<96xf32>, f32)
11731173
// CHECK-PROP: %[[VEC:.*]] = "some_def"
11741174
// CHECK-PROP: %[[VAL:.*]] = "another_def"
11751175
// CHECK-PROP: gpu.yield %[[VEC]], %[[VAL]]
11761176
// CHECK-PROP: vector.insert %[[W]]#1, %[[W]]#0 [%[[POS]]] : f32 into vector<96xf32>
1177-
func.func @_1d_broadcast(%laneid: index, %pos: index) -> (vector<96xf32>) {
1177+
func.func @vector_insert_1d_broadcast(%laneid: index, %pos: index) -> (vector<96xf32>) {
11781178
%r = gpu.warp_execute_on_lane_0(%laneid)[32] -> (vector<96xf32>) {
11791179
%0 = "some_def"() : () -> (vector<96xf32>)
11801180
%f = "another_def"() : () -> (f32)
@@ -1186,13 +1186,13 @@ func.func @_1d_broadcast(%laneid: index, %pos: index) -> (vector<96xf32>) {
11861186

11871187
// -----
11881188

1189-
// CHECK-PROP-LABEL: func @_0d(
1189+
// CHECK-PROP-LABEL: func @vector_insert_0d(
11901190
// CHECK-PROP: %[[W:.*]]:2 = gpu.warp_execute_on_lane_0{{.*}} -> (vector<f32>, f32)
11911191
// CHECK-PROP: %[[VEC:.*]] = "some_def"
11921192
// CHECK-PROP: %[[VAL:.*]] = "another_def"
11931193
// CHECK-PROP: gpu.yield %[[VEC]], %[[VAL]]
11941194
// CHECK-PROP: vector.insert %[[W]]#1, %[[W]]#0 [] : f32 into vector<f32>
1195-
func.func @_0d(%laneid: index) -> (vector<f32>) {
1195+
func.func @vector_insert_0d(%laneid: index) -> (vector<f32>) {
11961196
%r = gpu.warp_execute_on_lane_0(%laneid)[32] -> (vector<f32>) {
11971197
%0 = "some_def"() : () -> (vector<f32>)
11981198
%f = "another_def"() : () -> (f32)

0 commit comments

Comments
 (0)