HomePhabricator

[OPENMP]Fix PR50129: omp cancel parallel not working as expected.

Authored by ABataev on Jun 3 2021, 2:13 PM.

Description

[OPENMP]Fix PR50129: omp cancel parallel not working as expected.

Need to emit a call for kmpc_cancel_barrier in the exit block for
kmpc_cancel function call if cancellation of the parallel block is
requested.

Differential Revision: https://reviews.llvm.org/D103646