Re: [PATCH 2/2] libstdc++: Optimize is_reference

2022-09-07 Thread Jonathan Wakely via Gcc-patches
On Wed, 7 Sept 2022 at 01:46, Patrick Palka via Libstdc++ wrote: > > Instead of defining is_reference in terms of is_lvalue_reference > and is_rvalue_reference, just define it directly. > > Tested on x86_64-pc-linux-gnu, does this look OK for trunk? Yes, thanks (I already did this for the std::is

[PATCH 2/2] libstdc++: Optimize is_reference

2022-09-06 Thread Patrick Palka via Gcc-patches
Instead of defining is_reference in terms of is_lvalue_reference and is_rvalue_reference, just define it directly. Tested on x86_64-pc-linux-gnu, does this look OK for trunk? This reduces memory usage of join.cc by 1%. libstdc++-v3/ChangeLog: * include/std/type_traits (is_reference): Mak