Re: [PATCH 1/2] libstdc++: Optimize is_void and is_null_pointer

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 these in terms of a helper class template > and the relatively expensive __remove_cv_t, just declare four > explicit specializations of the main template, one for each choice > of cv-quals. > > Tested on x86_6

[PATCH 1/2] libstdc++: Optimize is_void and is_null_pointer

2022-09-06 Thread Patrick Palka via Gcc-patches
Instead of defining these in terms of a helper class template and the relatively expensive __remove_cv_t, just declare four explicit specializations of the main template, one for each choice of cv-quals. Tested on x86_64-pc-linux-gnu, does this look OK for trunk? The is_void change alone reduces m