[libcxx-commits] [PATCH] D124122: [libc++] Optimize std::rotate

Nikolas Klauser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Apr 20 13:37:28 PDT 2022


philnik created this revision.
philnik added reviewers: Mordante, var-const.
Herald added a project: All.
philnik requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

This removes the random access std::rotate "optimization".

Fixes https://github.com/llvm/llvm-project/issues/54949

The bugreport proposes to use a different rotate algorithm, but that should be done in a different patch.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D124122

Files:
  libcxx/benchmarks/algorithms.bench.cpp
  libcxx/include/__algorithm/rotate.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124122.424013.patch
Type: text/x-patch
Size: 4069 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220420/60b99629/attachment.bin>


More information about the libcxx-commits mailing list