Skip to content

Commit b6a1c3a

Browse files
ergawyronlieb
authored andcommitted
[flang][OpenMP] Update do concurrent mapping pass to use fir.do_concurrent op (llvm#138489)
This PR updates the `do concurrent` to OpenMP mapping pass to use the newly added `fir.do_concurrent` ops that were recently added upstream instead of handling nests of `fir.do_loop ... unordered` ops. Parent PR: llvm#137928.
1 parent b37c675 commit b6a1c3a

File tree

2 files changed

+2
-94
lines changed

2 files changed

+2
-94
lines changed

flang/test/Transforms/DoConcurrent/basic_host.mlir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func.func @do_concurrent_basic() attributes {fir.bindc_name = "do_concurrent_bas
1616
%8 = fir.convert %c10_i32 : (i32) -> index
1717
%c1 = arith.constant 1 : index
1818

19-
// CHECK-NOT: fir.do_loop
19+
// CHECK-NOT: fir.do_concurrent
2020

2121
// CHECK: %[[C1:.*]] = arith.constant 1 : i32
2222
// CHECK: %[[LB:.*]] = fir.convert %[[C1]] : (i32) -> index
@@ -58,7 +58,7 @@ func.func @do_concurrent_basic() attributes {fir.bindc_name = "do_concurrent_bas
5858
}
5959
}
6060

61-
// CHECK-NOT: fir.do_loop
61+
// CHECK-NOT: fir.do_concurrent
6262

6363
return
6464
}

flang/test/Transforms/DoConcurrent/loop_nest_test.f90

Lines changed: 0 additions & 92 deletions
This file was deleted.

0 commit comments

Comments
 (0)