[OPENMP] Simplify codegen for loop iteration variables in loop preamble.
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 8 Dec 2017 20:18:58 +0000 (20:18 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 8 Dec 2017 20:18:58 +0000 (20:18 +0000)
commite83b3e89e68397934784f898f46fa93d0006cfa0
tree9df7191ec3d1b00463a4872d5f1a5339f2adc182
parent7f0d456ef8b2500257f3ed9b936fb014fbd29b8b
[OPENMP] Simplify codegen for loop iteration variables in loop preamble.

Initial patch could cause trouble in the optimized code because of the
incorrectly generated lifetime intrinsics.

llvm-svn: 320191
clang/lib/CodeGen/CGStmtOpenMP.cpp
clang/test/OpenMP/distribute_parallel_for_lastprivate_codegen.cpp
clang/test/OpenMP/distribute_parallel_for_simd_lastprivate_codegen.cpp
clang/test/OpenMP/for_codegen.cpp
clang/test/OpenMP/for_lastprivate_codegen.cpp
clang/test/OpenMP/for_linear_codegen.cpp
clang/test/OpenMP/parallel_for_linear_codegen.cpp