summaryrefslogtreecommitdiff
path: root/openmp
diff options
context:
space:
mode:
authorJohannes Doerfert <johannes@jdoerfert.de>2023-03-25 23:50:23 -0700
committerJohannes Doerfert <johannes@jdoerfert.de>2023-03-27 21:30:23 -0700
commit7f7e1749c5bdab8116075c57711f7f11521bb527 (patch)
tree269d0f532e1bca5450d2e73fdb196c746802c6c2 /openmp
parent5244617e3a03376565afed14713eda4e87e725af (diff)
downloadllvm-7f7e1749c5bdab8116075c57711f7f11521bb527.tar.gz
[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).
Diffstat (limited to 'openmp')
-rw-r--r--openmp/libomptarget/test/offloading/atomic-compare-signedness.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openmp/libomptarget/test/offloading/atomic-compare-signedness.c b/openmp/libomptarget/test/offloading/atomic-compare-signedness.c
index 08b7acc20338..5b8ebeae83ae 100644
--- a/openmp/libomptarget/test/offloading/atomic-compare-signedness.c
+++ b/openmp/libomptarget/test/offloading/atomic-compare-signedness.c
@@ -5,6 +5,8 @@
// RUN: %libomptarget-compile-generic -fopenmp-version=51
// RUN: %libomptarget-run-generic | %fcheck-generic
+// RUN: %libomptarget-compileopt-generic -fopenmp-version=51
+// RUN: %libomptarget-run-generic | %fcheck-generic
// High parallelism increases our chances of detecting a lack of atomicity.
#define NUM_THREADS_TRY 256