[llvm-branch-commits] [flang] [flang][OpenMP] lower simple array reductions (PR #84958)

Kiran Chandramohan via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Mar 17 15:41:24 PDT 2024


================
@@ -0,0 +1,74 @@
+! RUN: bbc -emit-hlfir -fopenmp -o - %s 2>&1 | FileCheck %s
+! RUN: %flang_fc1 -emit-hlfir -fopenmp -o - %s 2>&1 | FileCheck %s
+
+program reduce
+integer, dimension(3) :: i = 0
+
+!$omp parallel reduction(+:i)
+i(1) = 1
+i(2) = 2
+i(3) = 3
----------------
kiranchandramohan wrote:

Is the test written to deliberately not use the reduction operation in the body?

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


More information about the llvm-branch-commits mailing list