Skip to content

Commit 028fd9c

Browse files
update flang/test/Lower/OpenMP/target.f90
1 parent b5d2c84 commit 028fd9c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

flang/test/Lower/OpenMP/target.f90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ subroutine omp_target_enter_depend
2727
!$omp task depend(out: a)
2828
call foo(a)
2929
!$omp end task
30-
!CHECK: omp.task mergeable depend(taskdependin -> %[[A]]#1 : !fir.ref<!fir.array<1024xi32>>) {
30+
!CHECK: omp.task if(%false) depend(taskdependin -> %[[A]]#1 : !fir.ref<!fir.array<1024xi32>>) {
3131
!CHECK: %[[BOUNDS:.*]] = omp.map.bounds lower_bound({{.*}}) upper_bound({{.*}}) extent({{.*}}) stride({{.*}}) start_idx({{.*}})
3232
!CHECK: %[[MAP:.*]] = omp.map.info var_ptr({{.*}}) map_clauses(to) capture(ByRef) bounds(%[[BOUNDS]]) -> !fir.ref<!fir.array<1024xi32>> {name = "a"}
3333
!CHECK: omp.target_enter_data map_entries(%[[MAP]] : !fir.ref<!fir.array<1024xi32>>)
@@ -168,7 +168,7 @@ subroutine omp_target_exit_depend
168168
call foo(a)
169169
!$omp end task
170170

171-
!CHECK: omp.task mergeable depend(taskdependout -> %[[A]]#1 : !fir.ref<!fir.array<1024xi32>>)
171+
!CHECK: omp.task if(%false) depend(taskdependout -> %[[A]]#1 : !fir.ref<!fir.array<1024xi32>>)
172172
!CHECK: %[[BOUNDS:.*]] = omp.map.bounds lower_bound({{.*}}) upper_bound({{.*}}) extent({{.*}}) stride({{.*}}) start_idx({{.*}})
173173
!CHECK: %[[MAP:.*]] = omp.map.info var_ptr({{.*}}) map_clauses(from) capture(ByRef) bounds(%[[BOUNDS]]) -> !fir.ref<!fir.array<1024xi32>> {name = "a"}
174174
!CHECK: omp.target_exit_data map_entries(%[[MAP]] : !fir.ref<!fir.array<1024xi32>>)
@@ -190,7 +190,7 @@ subroutine omp_target_update_depend
190190
call foo(a)
191191
!$omp end task
192192

193-
!CHECK: omp.task mergeable depend(taskdependin -> %[[A]]#1 : !fir.ref<!fir.array<1024xi32>>) {
193+
!CHECK: omp.task if(%false) depend(taskdependin -> %[[A]]#1 : !fir.ref<!fir.array<1024xi32>>) {
194194
!CHECK: %[[BOUNDS:.*]] = omp.map.bounds
195195
!CHECK: %[[MAP:.*]] = omp.map.info var_ptr(%[[A]]#0 : !fir.ref<!fir.array<1024xi32>>, !fir.array<1024xi32>) map_clauses(to) capture(ByRef) bounds(%[[BOUNDS]]) -> !fir.ref<!fir.array<1024xi32>> {name = "a"}
196196
!CHECK: omp.target_update motion_entries(%[[MAP]] : !fir.ref<!fir.array<1024xi32>>)
@@ -372,7 +372,7 @@ subroutine omp_target_depend
372372
call foo(a)
373373
!$omp end task
374374

375-
!CHECK: omp.task mergeable depend(taskdependin -> %[[A]]#1 : !fir.ref<!fir.array<1024xi32>>) {
375+
!CHECK: omp.task if(%false) depend(taskdependin -> %[[A]]#1 : !fir.ref<!fir.array<1024xi32>>) {
376376
!CHECK: %[[STRIDE_A:.*]] = arith.constant 1 : index
377377
!CHECK: %[[LBOUND_A:.*]] = arith.constant 0 : index
378378
!CHECK: %[[UBOUND_A:.*]] = arith.subi %c1024, %c1 : index

0 commit comments

Comments
 (0)