[PATCH] [OPENMP] Generate !llvm.mem.loop_parallel_access metadata for loops with dynamic/guided scheduling.

Alexey Bataev a.bataev at hotmail.com
Wed May 6 02:11:20 PDT 2015


Hi rjmccall, hfinkel,

Inner bodies of OpenMP worksharing loop-based constructs with dynamic or guided scheduling are allowed to be marked with !llvm.mem.parallel_loop_access metadata for better optimization. Worksharing constructs with static scheduling cannot be marked this way (according to OpenMP standard "A data dependence between the same logical iterations in two such loops is guaranteed").
Constructs with auto and runtime scheduling are also not marked because automatically chosen scheduling may be static also.

http://reviews.llvm.org/D9518

Files:
  lib/CodeGen/CGStmtOpenMP.cpp
  test/OpenMP/for_codegen.cpp
  test/OpenMP/ordered_codegen.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9518.25020.patch
Type: text/x-patch
Size: 4874 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150506/d31fcc1e/attachment.bin>


More information about the cfe-commits mailing list