Hi, I've committed the following patch series.
1 Add get_bbs_in_oacc_kernels_region 2 Handle sequential code in kernels region 3 Handle sequential code in kernels region - TestcasesThe patch series adds detection of whether sequential code (that is, code in the oacc kernels region before and after the loop that is to be parallelized), is safe to execute in parallel.
Bootstrapped and reg-tested on x86_64. I'll post the patches individually, in reply to this email. Thanks, - Tom