[pstl] Improve the parallel version of std::equal
authorLouis Dionne <ldionne@apple.com>
Wed, 3 Apr 2019 17:34:57 +0000 (17:34 +0000)
committerLouis Dionne <ldionne@apple.com>
Wed, 3 Apr 2019 17:34:57 +0000 (17:34 +0000)
commit8a497a958be1f4656eff9664e1be29491f3795d2
treeb144fb21b6703a30363d509a787ac2d917b2290e
parent35ccd864e0e8ae4fc7eb1fb82405d5ec129e3b28
[pstl] Improve the parallel version of std::equal

When an execution policy is provided, we attempt to run std::equal in
parallel instead of always doing it serially.

Thanks to Mikhail Dvorskiy for the patch.

Differential Revision: https://reviews.llvm.org/D59813

llvm-svn: 357613
pstl/include/pstl/internal/algorithm_impl.h
pstl/include/pstl/internal/glue_algorithm_impl.h