File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -57,9 +57,9 @@ class GenericLoopConversionPattern
57
57
rewriteToWsloop (loopOp, rewriter);
58
58
break ;
59
59
case GenericLoopCombinedInfo::TeamsLoop:
60
- if (teamsLoopCanBeParallelFor (loopOp))
60
+ if (teamsLoopCanBeParallelFor (loopOp)) {
61
61
rewriteToDistributeParallelDo (loopOp, rewriter);
62
- else {
62
+ } else {
63
63
auto teamsOp = llvm::cast<mlir::omp::TeamsOp>(loopOp->getParentOp ());
64
64
auto teamsBlockArgIface =
65
65
llvm::cast<mlir::omp::BlockArgOpenMPOpInterface>(*teamsOp);
Original file line number Diff line number Diff line change @@ -361,7 +361,7 @@ subroutine multi_block_teams
361
361
362
362
363
363
! Verifies that reductions are hoisted to the parent `teams` directive and removed
364
- ! from the `loop` dreictive when `loop` is mapped to `distribute`.
364
+ ! from the `loop` directive when `loop` is mapped to `distribute`.
365
365
366
366
! CHECK-LABEL: func.func @_QPteams_loop_cannot_be_parallel_for_with_reductions
367
367
subroutine teams_loop_cannot_be_parallel_for_with_reductions
@@ -388,10 +388,10 @@ subroutine teams_loop_cannot_be_parallel_for_with_reductions
388
388
! CHECK: omp.terminator
389
389
! CHECK: }
390
390
! $omp teams loop reduction(+: x) reduction(*: y) private(p)
391
- DO i = 1 , 5
391
+ do i = 1 , 5
392
392
call foo()
393
393
x = x + i
394
394
y = y * i
395
395
p = 42
396
- END DO
396
+ end do
397
397
end subroutine
You can’t perform that action at this time.
0 commit comments