Skip to content

Commit 744aa09

Browse files
committed
[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
1 parent 9ea5b97 commit 744aa09

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Transforms/IPO/OpenMPOpt.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3964,6 +3964,9 @@ struct AAKernelInfoCallSite : AAKernelInfo {
39643964
case OMPRTL___kmpc_master:
39653965
case OMPRTL___kmpc_end_master:
39663966
case OMPRTL___kmpc_barrier:
3967+
case OMPRTL___kmpc_nvptx_parallel_reduce_nowait_v2:
3968+
case OMPRTL___kmpc_nvptx_teams_reduce_nowait_v2:
3969+
case OMPRTL___kmpc_nvptx_end_reduce_nowait:
39673970
break;
39683971
case OMPRTL___kmpc_distribute_static_init_4:
39693972
case OMPRTL___kmpc_distribute_static_init_4u:

0 commit comments

Comments
 (0)