[all-commits] [llvm/llvm-project] b29437: [libc++] Use std::move in numeric algorithms (P061...

Zoe Carver via All-commits all-commits at lists.llvm.org
Fri Nov 27 11:22:18 PST 2020


  Branch: refs/heads/temp-test-main
  Home:   https://github.com/llvm/llvm-project
  Commit: b2943765e72ee240aa7e9f3a6b8e8a336cadc7ae
      https://github.com/llvm/llvm-project/commit/b2943765e72ee240aa7e9f3a6b8e8a336cadc7ae
  Author: zoecarver <z.zoelec2 at gmail.com>
  Date:   2020-11-27 (Fri, 27 Nov 2020)

  Changed paths:
    M libcxx/docs/Cxx2aStatusPaperStatus.csv
    M libcxx/include/numeric
    M libcxx/test/std/numerics/numeric.ops/accumulate/accumulate_op.pass.cpp
    M libcxx/test/std/numerics/numeric.ops/adjacent.difference/adjacent_difference_op.pass.cpp
    M libcxx/test/std/numerics/numeric.ops/inner.product/inner_product_comp.pass.cpp
    M libcxx/test/std/numerics/numeric.ops/partial.sum/partial_sum_op.pass.cpp

  Log Message:
  -----------
  [libc++] Use std::move in numeric algorithms (P0616R0).

This patch updates algorithms in <numeric> to use std::move
based on p0616r0. Moving values instead of copying them
creates huge speed improvements (see the paper for details).

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




More information about the All-commits mailing list