[polly] r214200 - IslAst: Enhance parallelism detection test
Tobias Grosser
tobias at grosser.es
Tue Jul 29 12:22:47 PDT 2014
Author: grosser
Date: Tue Jul 29 14:22:46 2014
New Revision: 214200
URL: http://llvm.org/viewvc/llvm-project?rev=214200&view=rev
Log:
IslAst: Enhance parallelism detection test
Add more check lines to ensure we do not accidentally generate nested openmp
parallel annotations.
Modified:
polly/trunk/test/Isl/Ast/OpenMP/nested_loop_both_parallel.ll
Modified: polly/trunk/test/Isl/Ast/OpenMP/nested_loop_both_parallel.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/Isl/Ast/OpenMP/nested_loop_both_parallel.ll?rev=214200&r1=214199&r2=214200&view=diff
==============================================================================
--- polly/trunk/test/Isl/Ast/OpenMP/nested_loop_both_parallel.ll (original)
+++ polly/trunk/test/Isl/Ast/OpenMP/nested_loop_both_parallel.ll Tue Jul 29 14:22:46 2014
@@ -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);
More information about the llvm-commits
mailing list