IslAst: Enhance parallelism detection test
authorTobias Grosser <tobias@grosser.es>
Tue, 29 Jul 2014 19:22:46 +0000 (19:22 +0000)
committerTobias Grosser <tobias@grosser.es>
Tue, 29 Jul 2014 19:22:46 +0000 (19:22 +0000)
Add more check lines to ensure we do not accidentally generate nested openmp
parallel annotations.

llvm-svn: 214200

polly/test/Isl/Ast/OpenMP/nested_loop_both_parallel.ll

index bba34cc..f70c5b5 100644 (file)
@@ -40,7 +40,13 @@ ret:
   ret void
 }
 
-; CHECK: #pragma omp parallel for
-; CHECK: for (int c1 = 0; c1 <= 1023; c1 += 1)
-; CHECK:   for (int c3 = 0; c3 <= 1023; c3 += 1)
-; CHECK:     Stmt_loop_body(c1, c3);
+; Make sure we do not accidentally generate nested openmp parallel for
+; annotations.
+
+; CHECK:     #pragma omp parallel for
+; CHECK:     for (int c1 = 0; c1 <= 1023; c1 += 1)
+; CHECK-NOT:   #pragma omp parallel for
+; CHECK:       #pragma simd
+; CHECK-NOT:   #pragma omp parallel for
+; CHECK:       for (int c3 = 0; c3 <= 1023; c3 += 1)
+; CHECK:         Stmt_loop_body(c1, c3);