[OpenMP][FIX] Invalidate the SPMDCompatibilityTracker explicitly
authorJoseph Huber <jhuber6@vols.utk.edu>
Mon, 6 Dec 2021 15:58:02 +0000 (10:58 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Mon, 6 Dec 2021 17:31:57 +0000 (12:31 -0500)
commit9ea5b9720354406c7b9bba638d0a01183c156ec7
tree05b4db813b1bcc42687ff77f46ce88edaf3f15a2
parentc94eb0f9ef5597bd1b3b0efda4df53f606a1fe13
[OpenMP][FIX] Invalidate the SPMDCompatibilityTracker explicitly

Before SPMDzation it was sufficient to add an incompatible instruction
to the SPMDCompatibilityTracker. However, now adding instructions means
they need guarding. As calls cannot be guarded in general we need to
explicitly prevent SPMD mode.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D115158
llvm/lib/Transforms/IPO/OpenMPOpt.cpp
llvm/test/Transforms/OpenMP/spmdization.ll