Skip to content

Commit f54d0e3

Browse files
committed
Rename xla_lhlo.terminator into return in SCF parallel loop test (NFC)
It seems that these were inserted here inadvertently instead of using standard `return`.
1 parent e885f33 commit f54d0e3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

mlir/test/Dialect/SCF/parallel-loop-fusion.mlir

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ func @fuse_empty_loops() {
1010
scf.parallel (%i, %j) = (%c0, %c0) to (%c2, %c2) step (%c1, %c1) {
1111
scf.yield
1212
}
13-
"xla_lhlo.terminator"() : () -> ()
13+
return
1414
}
1515
// CHECK-LABEL: func @fuse_empty_loops
1616
// CHECK: [[C2:%.*]] = constant 2 : index
@@ -140,7 +140,7 @@ func @do_not_fuse_nested_ploop1() {
140140
scf.parallel (%i, %j) = (%c0, %c0) to (%c2, %c2) step (%c1, %c1) {
141141
scf.yield
142142
}
143-
"xla_lhlo.terminator"() : () -> ()
143+
return
144144
}
145145
// CHECK-LABEL: func @do_not_fuse_nested_ploop1
146146
// CHECK: scf.parallel
@@ -162,7 +162,7 @@ func @do_not_fuse_nested_ploop2() {
162162
}
163163
scf.yield
164164
}
165-
"xla_lhlo.terminator"() : () -> ()
165+
return
166166
}
167167
// CHECK-LABEL: func @do_not_fuse_nested_ploop2
168168
// CHECK: scf.parallel
@@ -181,7 +181,7 @@ func @do_not_fuse_loops_unmatching_num_loops() {
181181
scf.parallel (%i) = (%c0) to (%c2) step (%c1) {
182182
scf.yield
183183
}
184-
"xla_lhlo.terminator"() : () -> ()
184+
return
185185
}
186186
// CHECK-LABEL: func @do_not_fuse_loops_unmatching_num_loops
187187
// CHECK: scf.parallel
@@ -200,7 +200,7 @@ func @do_not_fuse_loops_with_side_effecting_ops_in_between() {
200200
scf.parallel (%i, %j) = (%c0, %c0) to (%c2, %c2) step (%c1, %c1) {
201201
scf.yield
202202
}
203-
"xla_lhlo.terminator"() : () -> ()
203+
return
204204
}
205205
// CHECK-LABEL: func @do_not_fuse_loops_with_side_effecting_ops_in_between
206206
// CHECK: scf.parallel
@@ -219,7 +219,7 @@ func @do_not_fuse_loops_unmatching_iteration_space() {
219219
scf.parallel (%i, %j) = (%c0, %c0) to (%c2, %c2) step (%c1, %c1) {
220220
scf.yield
221221
}
222-
"xla_lhlo.terminator"() : () -> ()
222+
return
223223
}
224224
// CHECK-LABEL: func @do_not_fuse_loops_unmatching_iteration_space
225225
// CHECK: scf.parallel
@@ -302,7 +302,7 @@ func @do_not_fuse_loops_with_memref_defined_in_loop_bodies() {
302302
%A_elem = load %A[%i, %j] : memref<?x?xf32, offset: ?, strides:[?, ?]>
303303
scf.yield
304304
}
305-
"xla_lhlo.terminator"() : () -> ()
305+
return
306306
}
307307
// CHECK-LABEL: func @do_not_fuse_loops_with_memref_defined_in_loop_bodies
308308
// CHECK: scf.parallel

0 commit comments

Comments
 (0)