[PATCH] libstdc++: Fix std::fill and std::fill_n optimizations [PR109150]

2024-06-20 Thread Jonathan Wakely
I think the new conditions are correct. They're certainly an improvment on just checking __is_scalar without considering what we're assigning it to. Tested x86_64-linux. -- >8 -- As noted in the PR, the optimization used for scalar types in std::fill and std::fill_n is non-conforming, because it

Re: [PATCH] libstdc++: Fix std::fill and std::fill_n optimizations [PR109150]

2024-06-21 Thread Jonathan Wakely
Pushed to trunk now. On Thu, 20 Jun 2024 at 16:28, Jonathan Wakely wrote: > > I think the new conditions are correct. They're certainly an improvment > on just checking __is_scalar without considering what we're assigning it > to. > > Tested x86_64-linux. > > -- >8 -- > > As noted in the PR, the