]> granicus.if.org Git - clang/commit
[OPENMP] Fix PR35486: crash when collapsing loops with dependent iteration spaces.
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 4 Dec 2017 21:30:42 +0000 (21:30 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 4 Dec 2017 21:30:42 +0000 (21:30 +0000)
commitd80ab9d1a5be9068183b4433d417c61fdf02e179
treed60db68f9b6c7082b0dd2dd94b540fb15151ee45
parentb873ee35bb7121eadda09a249db2b20c58b8ab1f
[OPENMP] Fix PR35486: crash when collapsing loops with dependent iteration spaces.

Though it is incorrect from point of view of OpenMP standard to have
dependent iteration space in OpenMP loops, compiler should not crash.
Patch fixes this problem.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@319700 91177308-0d34-0410-b5e6-96231b3b80d8
28 files changed:
lib/CodeGen/CGStmtOpenMP.cpp
test/OpenMP/distribute_firstprivate_codegen.cpp
test/OpenMP/distribute_lastprivate_codegen.cpp
test/OpenMP/distribute_parallel_for_lastprivate_codegen.cpp
test/OpenMP/distribute_parallel_for_simd_lastprivate_codegen.cpp
test/OpenMP/distribute_simd_firstprivate_codegen.cpp
test/OpenMP/distribute_simd_lastprivate_codegen.cpp
test/OpenMP/distribute_simd_reduction_codegen.cpp
test/OpenMP/for_codegen.cpp
test/OpenMP/for_firstprivate_codegen.cpp
test/OpenMP/for_lastprivate_codegen.cpp
test/OpenMP/for_linear_codegen.cpp
test/OpenMP/for_reduction_codegen.cpp
test/OpenMP/for_reduction_codegen_UDR.cpp
test/OpenMP/parallel_for_linear_codegen.cpp
test/OpenMP/taskloop_reduction_codegen.cpp
test/OpenMP/taskloop_simd_reduction_codegen.cpp
test/OpenMP/teams_distribute_collapse_codegen.cpp
test/OpenMP/teams_distribute_lastprivate_codegen.cpp
test/OpenMP/teams_distribute_parallel_for_firstprivate_codegen.cpp
test/OpenMP/teams_distribute_parallel_for_lastprivate_codegen.cpp
test/OpenMP/teams_distribute_parallel_for_private_codegen.cpp
test/OpenMP/teams_distribute_parallel_for_reduction_codegen.cpp
test/OpenMP/teams_distribute_parallel_for_simd_firstprivate_codegen.cpp
test/OpenMP/teams_distribute_parallel_for_simd_lastprivate_codegen.cpp
test/OpenMP/teams_distribute_parallel_for_simd_private_codegen.cpp
test/OpenMP/teams_distribute_parallel_for_simd_reduction_codegen.cpp
test/OpenMP/teams_distribute_private_codegen.cpp