[libcxx-commits] [libcxx] [libc++] Replace __is_trivially_relocatable by is_trivially_copyable (PR #124970)

Hans Wennborg via libcxx-commits libcxx-commits at lists.llvm.org
Thu Feb 13 04:27:27 PST 2025


zmodem wrote:

> If you have details on which types are now generating less optimal `std::vector` operations, I could investigate.

It's a small increase spread across the binary, so it's hard to say for sure, but it's likely our [`raw_ptr` type](https://source.chromium.org/chromium/chromium/src/+/main:base/allocator/partition_allocator/src/partition_alloc/pointers/raw_ptr.h;l=316;drc=5f14562c01775211a40ebc3056d0a773c3569008) which has a [test](https://chromium-review.googlesource.com/c/chromium/src/+/6250498/10/base/allocator/partition_allocator/src/partition_alloc/pointers/raw_ptr_unittest.cc) checking for exactly this and gets used a lot.

> > Do you think we'll be able to get this back in some form later?

> Yes, [...]

Sounds great, we can just wait then. Thank you!

https://github.com/llvm/llvm-project/pull/124970


More information about the libcxx-commits mailing list