diff options
author | Ken Matsui <kmatsui@gcc.gnu.org> | 2023-07-12 13:43:44 -0700 |
---|---|---|
committer | Ken Matsui <kmatsui@gcc.gnu.org> | 2024-06-13 07:00:00 -0700 |
commit | 014879ea4c86b3b8ab6b61a1226ee5b31e816c8b (patch) | |
tree | e82b4814cdb5e1566ea355761baab5066f390563 /gcc/expr.cc | |
parent | 3b4d5b340a861b29eff40811c6c6638f54c28bf6 (diff) | |
download | gcc-014879ea4c86b3b8ab6b61a1226ee5b31e816c8b.zip gcc-014879ea4c86b3b8ab6b61a1226ee5b31e816c8b.tar.gz gcc-014879ea4c86b3b8ab6b61a1226ee5b31e816c8b.tar.bz2 |
libstdc++: Optimize std::is_pointer compilation performance
This patch optimizes the compilation performance of std::is_pointer
by dispatching to the new __is_pointer built-in trait.
libstdc++-v3/ChangeLog:
* include/bits/cpp_type_traits.h (__is_pointer): Use
__is_pointer built-in trait.
* include/std/type_traits (is_pointer): Likewise. Optimize its
implementation.
(is_pointer_v): Likewise.
Co-authored-by: Jonathan Wakely <jwakely@redhat.com>
Signed-off-by: Ken Matsui <kmatsui@gcc.gnu.org>
Reviewed-by: Patrick Palka <ppalka@redhat.com>
Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions