Re: [PATCH] libstdc++: Simplify std::valarray initialization helpers

2024-06-25 Thread Jonathan Wakely
Pushed to trunk. On Thu, 20 Jun 2024 at 16:34, Jonathan Wakely wrote: > > Tested x86_64-linux. > > -- >8 -- > > Dispatching to partial specializations doesn't really seem to offer much > benefit here. The __is_trivial(T) condition is a compile-time constant > so the untaken branches are dead code

[PATCH] libstdc++: Simplify std::valarray initialization helpers

2024-06-20 Thread Jonathan Wakely
Tested x86_64-linux. -- >8 -- Dispatching to partial specializations doesn't really seem to offer much benefit here. The __is_trivial(T) condition is a compile-time constant so the untaken branches are dead code and don't cost us anything. libstdc++-v3/ChangeLog: * include/bits/valarray