Re: [libstdc++] Optimize string constructors

2025-03-27 Thread Bernhard Reutner-Fischer
>> > diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr80331.C >> > b/gcc/testsuite/g++.dg/tree-ssa/pr80331.C >> > new file mode 100644 >> > index 000..85034504f2f >> > --- /dev/null >> > +++ b/gcc/testsuite/g++.dg/tree-ssa/pr80331.C >> > @@ -0,0 +1,8 @@ >> > +// { dg-do compile } >> > +// {

Re: [libstdc++] Optimize string constructors

2025-03-27 Thread Jan Hubicka
> > Newline between functions please. > > > > OK with those two changes. > > Looking back through my inbox, this one doesn't seem to have been > pushed. Was it superseded by something else, or is it just waiting for > stage 1 now? Seems I missed the approval, sorry. I will push it - I think it w

Re: [libstdc++] Optimize string constructors

2025-03-27 Thread Jonathan Wakely
On Wed, 15 Jan 2025 at 12:10, Jonathan Wakely wrote: > > On Fri, 13 Dec 2024 at 14:01, Jan Hubicka wrote: > > > > Hi, > > this patch improves code generation on string constructors. We currently > > have > > _M_construct which takes as a parameter two iterators (begin/end pointers to > > other

Re: [libstdc++] Optimize string constructors

2025-01-15 Thread Jonathan Wakely
On Fri, 13 Dec 2024 at 14:01, Jan Hubicka wrote: > > Hi, > this patch improves code generation on string constructors. We currently have > _M_construct which takes as a parameter two iterators (begin/end pointers to > other string) and produces new string. This patch adds special case of > const

[libstdc++] Optimize string constructors

2024-12-13 Thread Jan Hubicka
Hi, this patch improves code generation on string constructors. We currently have _M_construct which takes as a parameter two iterators (begin/end pointers to other string) and produces new string. This patch adds special case of constructor where instead of begining/end pointers we readily know