Re: Priority of builtins expansion strategies

2021-07-13 Thread Christoph Müllner via Gcc
On Tue, Jul 13, 2021 at 2:59 PM Richard Biener wrote: > > On Tue, Jul 13, 2021 at 2:19 PM Christoph Müllner via Gcc > wrote: > > > > On Tue, Jul 13, 2021 at 2:11 AM Alexandre Oliva wrote: > > > > > > On Jul 12, 2021, Christoph Müllner wrote: > > > > > > > * Why does the generic by-pieces infras

Re: Priority of builtins expansion strategies

2021-07-13 Thread Richard Biener via Gcc
On Tue, Jul 13, 2021 at 2:19 PM Christoph Müllner via Gcc wrote: > > On Tue, Jul 13, 2021 at 2:11 AM Alexandre Oliva wrote: > > > > On Jul 12, 2021, Christoph Müllner wrote: > > > > > * Why does the generic by-pieces infrastructure have a higher priority > > > than the target-specific expansion

Re: Priority of builtins expansion strategies

2021-07-13 Thread Christoph Müllner via Gcc
On Tue, Jul 13, 2021 at 2:11 AM Alexandre Oliva wrote: > > On Jul 12, 2021, Christoph Müllner wrote: > > > * Why does the generic by-pieces infrastructure have a higher priority > > than the target-specific expansion via INSNs like setmem? > > by-pieces was not affected by the recent change, and

Re: Priority of builtins expansion strategies

2021-07-12 Thread Alexandre Oliva
On Jul 12, 2021, Christoph Müllner wrote: > * Why does the generic by-pieces infrastructure have a higher priority > than the target-specific expansion via INSNs like setmem? by-pieces was not affected by the recent change, and IMHO it generally makes sense for it to have priority over setmem.

Priority of builtins expansion strategies

2021-07-12 Thread Christoph Müllner via Gcc
Hi, I'm working on some platform-specific optimizations for memset/memcpy/strcpy/strncpy. However, I am having difficulties understanding how my code should be integrated. Initially, I got inspired by rs6000-string.c, where I see expansion code for instructions like setmemsi or cmpstrsi. However,