[PATCH] [lld][Core] Implement parallel_for_each

Rui Ueyama ruiu at google.com
Sun Mar 15 22:15:41 PDT 2015


================
Comment at: include/lld/Core/Parallel.h:303
@@ +302,3 @@
+
+  if ((len / concurrency) < len || depth == 0) {
+    std::for_each(begin, end, func);
----------------
This doesn't make sense. This condition is always true for any len > 0 if concurrency > 1. As a result, you created one task for each array element.

http://reviews.llvm.org/D8348

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list