[libcxx-commits] [PATCH] D155649: [libc++] Make sure we use the libdispatch backend on Apple platforms
Nikolas Klauser via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jul 20 08:38:49 PDT 2023
philnik added inline comments.
================
Comment at: libcxx/include/__algorithm/pstl_backends/cpu_backends/libdispatch.h:181-182
_Reduction __reduction) {
+ if (__first == __last)
+ return __init;
+
----------------
I don't understand this change. Is this just an optimization, or is something here assuming a size > 0?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D155649/new/
https://reviews.llvm.org/D155649
More information about the libcxx-commits
mailing list