Revert "[OpenMP][clang] 6.0: num_threads strict (part 1: host runtime)" (#147379)
Reverts llvm/llvm-project#146403
diff --git a/openmp/runtime/src/kmp_runtime.cpp b/openmp/runtime/src/kmp_runtime.cpp
index 6afea9b..417eceb 100644
--- a/openmp/runtime/src/kmp_runtime.cpp
+++ b/openmp/runtime/src/kmp_runtime.cpp
@@ -1214,12 +1214,6 @@
// Reset for next parallel region
this_thr->th.th_set_proc_bind = proc_bind_default;
- // OpenMP 6.0 12.1.2 requires the num_threads 'strict' modifier to also have
- // effect when parallel execution is disabled by a corresponding if clause
- // attached to the parallel directive.
- if (this_thr->th.th_nt_strict && this_thr->th.th_set_nproc > 1)
- __kmpc_error(this_thr->th.th_nt_loc, this_thr->th.th_nt_sev,
- this_thr->th.th_nt_msg);
// Reset num_threads for next parallel region
this_thr->th.th_set_nproc = 0;