[Mlir-commits] [flang] [mlir] [openmp] [Flang][OpenMP] Remove use of non reference values from MapInfoOp (PR #72444)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Nov 16 08:40:25 PST 2023


================
@@ -14,14 +14,14 @@ program main
     integer :: i = 1
     integer :: j = 11
 
-  !$omp target map(tofrom:x, i, j)
-     do while (i <= j)
+  !$omp target
+     do i = 1, j
         x(i) = i;
         i = i + 1
----------------
agozillon wrote:

Thank you Akash! And I've done that on more than one occasion now unfortunately (you're fixing one that sadly landed upstream in this PR)!

https://github.com/llvm/llvm-project/pull/72444


More information about the Mlir-commits mailing list