[OpenMP] Be smarter about the insertion point for deduplication
authorJohannes Doerfert <johannes@jdoerfert.de>
Sun, 26 Mar 2023 06:50:23 +0000 (23:50 -0700)
committerJohannes Doerfert <johannes@jdoerfert.de>
Tue, 28 Mar 2023 04:30:23 +0000 (21:30 -0700)
commit7f7e1749c5bdab8116075c57711f7f11521bb527
tree269d0f532e1bca5450d2e73fdb196c746802c6c2
parent5244617e3a03376565afed14713eda4e87e725af
[OpenMP] Be smarter about the insertion point for deduplication

We can use dominance and avoid the special handling of kernels and
prevent inserting code before allocas accidentally (as happend in the
runtime test).
llvm/lib/Transforms/IPO/OpenMPOpt.cpp
llvm/test/Transforms/OpenMP/deduplication.ll
llvm/test/Transforms/OpenMP/deduplication_target.ll
openmp/libomptarget/test/offloading/atomic-compare-signedness.c