[OpenMP] Make reduction functions SPMD compatible
authorJoseph Huber <jhuber6@vols.utk.edu>
Mon, 6 Dec 2021 16:14:54 +0000 (11:14 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Mon, 6 Dec 2021 17:32:02 +0000 (12:32 -0500)
commit744aa09f5218f7db206af2e1945e23f90df46f1f
treec44434a7e6011f472fa0b6831394ada1fadddaf7
parent9ea5b9720354406c7b9bba638d0a01183c156ec7
[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
llvm/lib/Transforms/IPO/OpenMPOpt.cpp