[Mlir-commits] [mlir] [mlir][OpenMP] allow cancellation to not be directly nested (PR #134084)
Kiran Chandramohan
llvmlistbot at llvm.org
Wed Apr 2 08:26:56 PDT 2025
kiranchandramohan wrote:
Good catch.
> This patch relaxes the verifier to only require that some parent operation matches (not necessarily the immediate parent).
Is the following allowed?
```
subroutine one
!$omp parallel do
do i = 1, N
if (cond) then
call two()
endif
enddo
end subroutine
subroutine two
!$omp cancel do
end subroutine
```
https://github.com/llvm/llvm-project/pull/134084
More information about the Mlir-commits
mailing list