[PATCH] D44661: [libcxx] optimize reduce(), hmin(), hmax() by reordering the operations.

Tim Shen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 19 17:46:34 PDT 2018


timshen created this revision.
timshen added a reviewer: mclow.lists.
Herald added subscribers: christof, sanjoy.
Herald added a reviewer: EricWF.

Also change std::plus<_Tp> to std::plus<>/__simd_plus_op, so that the
optimization can transparently use the simd<> overloading.


https://reviews.llvm.org/D44661

Files:
  libcxx/include/experimental/simd
  libcxx/test/std/experimental/simd/simd.horizontal/hmax.pass.cpp
  libcxx/test/std/experimental/simd/simd.horizontal/hmin.pass.cpp
  libcxx/test/std/experimental/simd/simd.horizontal/reduce.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44661.139053.patch
Type: text/x-patch
Size: 15318 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180320/c7d1f74e/attachment-0001.bin>


More information about the cfe-commits mailing list