]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Optimize std::rank compilation performance
authorKen Matsui <kmatsui@gcc.gnu.org>
Thu, 15 Feb 2024 15:19:02 +0000 (07:19 -0800)
committerKen Matsui <kmatsui@gcc.gnu.org>
Thu, 13 Jun 2024 12:56:45 +0000 (05:56 -0700)
commit6f0dfa6f1acdf78d764d6f5d6f53c2f2a768c047
tree1e615a2e3f74c5638e51e723c2909428285e3eea
parent9d0dba02c5452d5906f87e59455a4c38944eb217
libstdc++: Optimize std::rank compilation performance

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

libstdc++-v3/ChangeLog:

* include/std/type_traits (rank): Use __array_rank built-in
trait.
(rank_v): Likewise.

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