[llvm] 744aa09 - [OpenMP] Make reduction functions SPMD compatible

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 6 09:32:12 PST 2021


Author: Joseph Huber
Date: 2021-12-06T12:32:02-05:00
New Revision: 744aa09f5218f7db206af2e1945e23f90df46f1f

URL: https://github.com/llvm/llvm-project/commit/744aa09f5218f7db206af2e1945e23f90df46f1f
DIFF: https://github.com/llvm/llvm-project/commit/744aa09f5218f7db206af2e1945e23f90df46f1f.diff

LOG: [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

Added: 
    

Modified: 
    llvm/lib/Transforms/IPO/OpenMPOpt.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
index e20540a90899..f289e3ecc979 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:


        


More information about the llvm-commits mailing list