[libcxx-commits] [PATCH] D138005: [libc++abi] Improve performance of __dynamic_cast

Sirui Mu via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Nov 23 23:46:10 PST 2022


Lancern updated this revision to Diff 477688.
Lancern added a comment.

[libc++abi] Improve performance of __dynamic_cast

The original __dynamic_cast implementation does not use the ABI-provided 
src2dst_offset parameter which helps improve performance on the hot paths.
This patch improves the performance on the hot paths in __dynamic_cast by 
leveraging hints provided by the src2dst_offset parameter. This patch also 
includes a performance benchmark suite for the __dynamic_cast implementation.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D138005/new/

https://reviews.llvm.org/D138005

Files:
  libcxx/benchmarks/CMakeLists.txt
  libcxx/benchmarks/libcxxabi/dynamic_cast.bench.cpp
  libcxxabi/src/private_typeinfo.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138005.477688.patch
Type: text/x-patch
Size: 20815 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20221124/f0a599ca/attachment-0001.bin>


More information about the libcxx-commits mailing list