[OpenMP] Guarding restrictions are required only for guarding
authorJohannes Doerfert <johannes@jdoerfert.de>
Fri, 23 Dec 2022 02:21:00 +0000 (18:21 -0800)
committerJohannes Doerfert <johannes@jdoerfert.de>
Sun, 22 Jan 2023 23:53:42 +0000 (15:53 -0800)
commit2275e325e4bc7db4ea0f4fa527774be524c2c287
tree38649ddd0b8cb9ea865d4c58cb65243663877f16
parentea3c24932a6b463efaa435e76140af7619b3f41c
[OpenMP] Guarding restrictions are required only for guarding

If we do not guard code during SPMDzation, we do not need to check
conditions for successfull guarding. That is, even if some code is
executed in different modes, it does not prevent SPMDzation if there is
no guarded code in there.
llvm/lib/Transforms/IPO/OpenMPOpt.cpp
llvm/test/Transforms/OpenMP/spmdization_no_guarding_two_reaching_kernels.ll