Re: [PATCH] libstdc++: Optimize std::is_trivially_destructible_v

2024-01-06 Thread Jonathan Wakely
Pushed to trunk now. On Thu, 14 Dec 2023 at 01:09, Jonathan Wakely wrote: > > Tested x86_64-linux. > > Does this look right? Can we do it faster, or simplify it? > > -- >8 -- > > This reduces the overhead of using std::is_trivially_destructible_v and > as a result fixes some recent regressions se

[PATCH] libstdc++: Optimize std::is_trivially_destructible_v

2023-12-13 Thread Jonathan Wakely
Tested x86_64-linux. Does this look right? Can we do it faster, or simplify it? -- >8 -- This reduces the overhead of using std::is_trivially_destructible_v and as a result fixes some recent regressions seen with a non-default GLIBCXX_TESTSUITE_STDS env var: FAIL: 20_util/variant/87619.cc -std=