Re: Introduce -finline-stringops (was: Re: [RFC] Introduce -finline-memset-loops)

2023-12-11 Thread Sam James
Alexandre Oliva via Gcc-patches writes: > On Jun 2, 2023, Alexandre Oliva wrote: > >> Introduce -finline-stringops > > Ping? https://gcc.gnu.org/pipermail/gcc-patches/2023-June/620472.html Should the docs for the x86-specific -minline-all-stringops refer to the new -finline-stringops?

Introduce -finline-stringops (was: Re: [RFC] Introduce -finline-memset-loops)

2023-06-22 Thread Alexandre Oliva via Gcc-patches
On Jun 2, 2023, Alexandre Oliva wrote: > Introduce -finline-stringops Ping? https://gcc.gnu.org/pipermail/gcc-patches/2023-June/620472.html -- Alexandre Oliva, happy hackerhttps://FSFLA.org/blogs/lxo/ Free Software Activist GNU Toolchain Engineer

Re: [RFC] Introduce -finline-memset-loops

2023-06-02 Thread Fangrui Song via Gcc-patches
On Fri, Jun 2, 2023 at 3:11 AM Alexandre Oliva via Gcc-patches wrote: > > On Jan 19, 2023, Alexandre Oliva wrote: > > > Would it make more sense to extend it, even constrained by the > > limitations mentioned above, or handle memset only? In the latter case, > > would it still make sense to

Re: [RFC] Introduce -finline-memset-loops

2023-06-02 Thread Alexandre Oliva via Gcc-patches
On Jan 19, 2023, Alexandre Oliva wrote: > Would it make more sense to extend it, even constrained by the > limitations mentioned above, or handle memset only? In the latter case, > would it still make sense to adopt a command-line option that suggests a > broader effect than it already has,

Re: [RFC] Introduce -finline-memset-loops

2023-01-19 Thread Richard Biener via Gcc-patches
On Thu, Jan 19, 2023 at 12:25 PM Alexandre Oliva wrote: > > On Jan 16, 2023, Richard Biener wrote: > > > On Sat, Jan 14, 2023 at 2:55 AM Alexandre Oliva wrote: > >> Target-specific code is great for tight optimizations, but the main > >> purpose of this feature is not an optimization. AFAICT

Re: [RFC] Introduce -finline-memset-loops

2023-01-19 Thread Alexandre Oliva via Gcc-patches
On Jan 16, 2023, Richard Biener wrote: > On Sat, Jan 14, 2023 at 2:55 AM Alexandre Oliva wrote: >> Target-specific code is great for tight optimizations, but the main >> purpose of this feature is not an optimization. AFAICT it actually >> slows things down in general (due to code growth, and

Re: [RFC] Introduce -finline-memset-loops

2023-01-15 Thread Richard Biener via Gcc-patches
On Sat, Jan 14, 2023 at 2:55 AM Alexandre Oliva wrote: > > Hello, Richard, > > Thank you for the feedback. > > On Jan 12, 2023, Richard Biener wrote: > > > On Tue, Dec 27, 2022 at 5:12 AM Alexandre Oliva via Gcc-patches > > wrote: > > >> This patch extends the memset expansion to start with a

Re: [RFC] Introduce -finline-memset-loops

2023-01-13 Thread Alexandre Oliva via Gcc-patches
Hello, Paul, On Jan 13, 2023, Paul Koning wrote: >> On Jan 13, 2023, at 8:54 PM, Alexandre Oliva via Gcc-patches >> wrote: >> Target-specific code is great for tight optimizations, but the main >> purpose of this feature is not an optimization. AFAICT it actually >> slows things down in

Re: [RFC] Introduce -finline-memset-loops

2023-01-13 Thread Paul Koning via Gcc-patches
> On Jan 13, 2023, at 8:54 PM, Alexandre Oliva via Gcc-patches > wrote: > > Hello, Richard, > > Thank you for the feedback. > > On Jan 12, 2023, Richard Biener wrote: > >> On Tue, Dec 27, 2022 at 5:12 AM Alexandre Oliva via Gcc-patches >> wrote: > >>> This patch extends the memset

Re: [RFC] Introduce -finline-memset-loops

2023-01-13 Thread Alexandre Oliva via Gcc-patches
Hello, Richard, Thank you for the feedback. On Jan 12, 2023, Richard Biener wrote: > On Tue, Dec 27, 2022 at 5:12 AM Alexandre Oliva via Gcc-patches > wrote: >> This patch extends the memset expansion to start with a loop, so as to >> still take advantage of known alignment even with long

Re: [RFC] Introduce -finline-memset-loops

2023-01-12 Thread Richard Biener via Gcc-patches
On Tue, Dec 27, 2022 at 5:12 AM Alexandre Oliva via Gcc-patches wrote: > > > try_store_by_multiple_pieces was added not long ago, enabling > variable-sized memset to be expanded inline when the worst-case > in-range constant length would, using conditional blocks with powers > of two to cover all

[RFC] Introduce -finline-memset-loops

2022-12-26 Thread Alexandre Oliva via Gcc-patches
try_store_by_multiple_pieces was added not long ago, enabling variable-sized memset to be expanded inline when the worst-case in-range constant length would, using conditional blocks with powers of two to cover all possibilities of length and alignment. This patch extends the memset expansion