[all-commits] [llvm/llvm-project] 980808: [Flang][OpenMP] Fix loop index privatisation with ...
kiranchandramohan via All-commits
all-commits at lists.llvm.org
Tue Aug 1 07:50:32 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 980808dc5b598dd6d2f85746bd1fdeb36d4c6a1c
https://github.com/llvm/llvm-project/commit/980808dc5b598dd6d2f85746bd1fdeb36d4c6a1c
Author: Kiran Chandramohan <kiran.chandramohan at arm.com>
Date: 2023-08-01 (Tue, 01 Aug 2023)
Changed paths:
M flang/lib/Lower/OpenMP.cpp
A flang/test/Lower/OpenMP/hlfir-wsloop.f90
M flang/test/Lower/OpenMP/lastprivate-commonblock.f90
M flang/test/Lower/OpenMP/stop-stmt-in-region.f90
Log Message:
-----------
[Flang][OpenMP] Fix loop index privatisation with HLFIR
Loop index variables are privatised for a worksharing loop.
The alloca ops of the privatised index are hoisted to the
entry block of the outlineable region or parent function.
With HLFIR, the hlfir.declare should be created in the same
place as the alloca op. To achieve this the alloc and the
hflir.declare should be created in the same place. A new
function is created in OpenMP.cpp for this purpose.
Reviewed By: tblah
Differential Revision: https://reviews.llvm.org/D156719
More information about the All-commits
mailing list