Re: [PATCH v2 6/7] Enable vectorization for input.cc find_end_of_line function

2025-02-02 Thread Andi Kleen
On Tue, Jan 28, 2025 at 09:50:41AM +0100, Richard Biener wrote: > On Mon, Jan 27, 2025 at 9:59 PM David Malcolm wrote: > > > > On Sat, 2025-01-25 at 23:31 -0800, Andi Kleen wrote: > > > From: Andi Kleen > > > > > > This is the hot function in input.cc > > > > > > The vectorizer can vectorize it n

Re: [PATCH v2 6/7] Enable vectorization for input.cc find_end_of_line function

2025-01-28 Thread Richard Biener
On Mon, Jan 27, 2025 at 9:59 PM David Malcolm wrote: > > On Sat, 2025-01-25 at 23:31 -0800, Andi Kleen wrote: > > From: Andi Kleen > > > > This is the hot function in input.cc > > > > The vectorizer can vectorize it now, but in a generic cpu O2 x86 > > build it isn't. > > Add a automatic target c

Re: [PATCH v2 6/7] Enable vectorization for input.cc find_end_of_line function

2025-01-27 Thread David Malcolm
On Sat, 2025-01-25 at 23:31 -0800, Andi Kleen wrote: > From: Andi Kleen > > This is the hot function in input.cc > > The vectorizer can vectorize it now, but in a generic cpu O2 x86 > build it isn't. > Add a automatic target clone to handle it for x86 and build > that function with O3. > > The