[PATCH] [OPENMP] Fixed codegen for 'reduction' clause
Alexey Bataev
a.bataev at hotmail.com
Tue May 5 22:02:42 PDT 2015
Hi rjmccall, hfinkel,
Fixed codegen for reduction operations min, max, && and ||. Codegen for them is quite similar and I was confused by this similarity.
Also added a call to kmpc_end_reduce() in atomic part of reduction codegen (call to kmpc_end_reduce_nowait() is not required).
http://reviews.llvm.org/D9513
Files:
lib/CodeGen/CGOpenMPRuntime.cpp
lib/Sema/SemaOpenMP.cpp
test/OpenMP/for_reduction_codegen.cpp
test/OpenMP/parallel_reduction_codegen.cpp
test/OpenMP/sections_reduction_codegen.cpp
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9513.25006.patch
Type: text/x-patch
Size: 31040 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150506/fccde34e/attachment.bin>
More information about the cfe-commits
mailing list