Skip to content

Commit dd25925

Browse files
update test.
1 parent ca81fd7 commit dd25925

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

mlir/test/Transforms/remove-dead-values.mlir

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -678,12 +678,12 @@ func.func @dead_value_loop_ivs_no_result(%lb: index, %ub: index, %step: index, %
678678
// -----
679679

680680
// CHECK-LABEL: func @op_block_have_dead_arg
681-
func.func @op_block_have_dead_arg(%arg0: i64, %arg1: i64, %arg2: i64, %arg3: i1) {
682-
omp.wsloop {
683-
omp.loop_nest (%arg4) : i64 = (%arg0) to (%arg1) step (%arg2) {
684-
cf.cond_br %arg3, ^bb1(%arg0 : i64), ^bb1(%arg1 : i64)
685-
^bb1(%0: i64):
686-
omp.yield
681+
func.func @op_block_have_dead_arg(%arg0: index, %arg1: index, %arg2: index, %arg3: i1) {
682+
scf.for %iv = %arg0 to %arg1 step %arg2 {
683+
scf.execute_region {
684+
cf.cond_br %arg3, ^bb1(%arg0 : index), ^bb1(%arg1 : index)
685+
^bb1(%0: index):
686+
scf.yield
687687
}
688688
}
689689
// CHECK-NEXT: return

0 commit comments

Comments
 (0)