From: Joseph Huber Date: Mon, 6 Dec 2021 16:14:54 +0000 (-0500) Subject: [OpenMP] Make reduction functions SPMD compatible X-Git-Tag: upstream/15.0.7~23882 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=744aa09f5218f7db206af2e1945e23f90df46f1f;p=platform%2Fupstream%2Fllvm.git [OpenMP] Make reduction functions SPMD compatible Reduction functions were guarded before which was wrong, these are SPMD compatible. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D115159 --- diff --git a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp index e20540a..f289e3e 100644 --- a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp +++ b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp @@ -3964,6 +3964,9 @@ struct AAKernelInfoCallSite : AAKernelInfo { case OMPRTL___kmpc_master: case OMPRTL___kmpc_end_master: case OMPRTL___kmpc_barrier: + case OMPRTL___kmpc_nvptx_parallel_reduce_nowait_v2: + case OMPRTL___kmpc_nvptx_teams_reduce_nowait_v2: + case OMPRTL___kmpc_nvptx_end_reduce_nowait: break; case OMPRTL___kmpc_distribute_static_init_4: case OMPRTL___kmpc_distribute_static_init_4u: