Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion flang/lib/Lower/OpenMP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3789,7 +3789,16 @@ static void genOMP(Fortran::lower::AbstractConverter &converter,
}

// 2.9.3.1 SIMD construct
if (llvm::omp::allSimdSet.test(ompDirective)) {
// Process simd loop:
// !$ omp simd
// do-loop
// Worksharing loops like:
// !$ omp do simd
// do-loop
// should be processed as other worksharing loops
// and they should be represented by omp.wsloop operation
if ((llvm::omp::OMPD_simd == ompDirective) ||
(llvm::omp::OMPD_target_simd == ompDirective)) {
createSimdLoop(converter, eval, ompDirective, loopOpClauseList,
currentLocation);
} else {
Expand Down