Skip to content

Commit 9393ecc

Browse files
committed
Add minimal test, remove debug print.
1 parent dd11708 commit 9393ecc

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
! This test checks lowering of OpenMP DO Directive(Worksharing) with collapse.
2+
3+
! RUN: bbc -fopenmp -fopenmp-version=51 -emit-hlfir %s -o - | FileCheck %s
4+
5+
!CHECK-LABEL: func.func @_QQmain() attributes {fir.bindc_name = "wsloop_tile"} {
6+
program wsloop_tile
7+
integer :: i, j, k
8+
integer :: a, b, c
9+
integer :: x
10+
11+
a=30
12+
b=20
13+
c=50
14+
x=0
15+
16+
!CHECK: omp.loop_nest
17+
!CHECK-SAME: tiles(2, 5, 10)
18+
19+
!$omp do
20+
!$omp tile sizes(2,5,10)
21+
do i = 1, a
22+
do j= 1, b
23+
do k = 1, c
24+
x = x + i + j + k
25+
end do
26+
end do
27+
end do
28+
!$omp end tile
29+
!$omp end do
30+
end program wsloop_tile

llvm/include/llvm/Frontend/OpenMP/ConstructDecompositionT.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ bool ConstructDecompositionT<C, H>::applyClause(
498498
last.clauses.push_back(node);
499499
return true;
500500
} else {
501-
llvm::errs() << "** OVERRIDING isAllowedClauseForDirective **\n";
501+
// llvm::errs() << "** OVERRIDING isAllowedClauseForDirective **\n";
502502
last.clauses.push_back(node);
503503
return true;
504504
}

0 commit comments

Comments
 (0)