[libcxx-commits] [libcxx] [libc++] std::cmp_less and other integer comparison functions could be improved (PR #151332)

Hristo Hristov via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jul 30 08:18:02 PDT 2025


H-G-Hristov wrote:

> libcxx seems unhappy with `__builtin_assume`. Should we keep it for performance, or remove it? @ldionne

Have you read this discussion: https://github.com/llvm/llvm-project/issues/91612
You should probably use the macro `__LIBCPP_ASSUME` instead: https://github.com/llvm/llvm-project/blob/098426c4585ed99a6c7db771359fcd01d10ded44/libcxx/include/__assert#L26

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


More information about the libcxx-commits mailing list