[all-commits] [llvm/llvm-project] 679c0b: [libc++abi] Refactor around __dynamic_cast

Sirui Mu via All-commits all-commits at lists.llvm.org
Fri Sep 8 08:47:38 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 679c0b48d7418b40996e5dcab61c0ffa73089718
      https://github.com/llvm/llvm-project/commit/679c0b48d7418b40996e5dcab61c0ffa73089718
  Author: Sirui Mu <msrlancern at gmail.com>
  Date:   2023-09-08 (Fri, 08 Sep 2023)

  Changed paths:
    M libcxx/benchmarks/CMakeLists.txt
    A libcxx/benchmarks/libcxxabi/dynamic_cast_old_stress.bench.cpp
    M libcxxabi/src/private_typeinfo.cpp
    R libcxxabi/test/dynamic_cast_stress.pass.cpp

  Log Message:
  -----------
  [libc++abi] Refactor around __dynamic_cast

This commit contains refactorings around __dynamic_cast without changing
its behavior. Some important changes include:

- Refactor __dynamic_cast into various small helper functions;
- Move dynamic_cast_stress.pass.cpp to libcxx/benchmarks and refactor
  it into a benchmark. The benchmark performance numbers are updated
  as well.

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




More information about the All-commits mailing list