]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Optimize std::add_lvalue_reference compilation performance
authorKen Matsui <kmatsui@gcc.gnu.org>
Thu, 15 Feb 2024 07:22:57 +0000 (23:22 -0800)
committerKen Matsui <kmatsui@gcc.gnu.org>
Thu, 13 Jun 2024 14:00:06 +0000 (07:00 -0700)
commit13a07c1420b35ac7649f7d8a776b553ec5c26269
tree2285ad572273cd0fe13d411360a9323b9e8ee0e0
parent014879ea4c86b3b8ab6b61a1226ee5b31e816c8b
libstdc++: Optimize std::add_lvalue_reference compilation performance

This patch optimizes the compilation performance of
std::add_lvalue_reference by dispatching to the new
__add_lvalue_reference built-in trait.

libstdc++-v3/ChangeLog:

* include/std/type_traits (__add_lval_ref_t): Use
__add_lvalue_reference built-in trait.

Signed-off-by: Ken Matsui <kmatsui@gcc.gnu.org>
Reviewed-by: Patrick Palka <ppalka@redhat.com>
Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/include/std/type_traits