Re: Regarding vectorize pattern recognition for vector code

2025-10-18 Thread Avinash Jayakar via Gcc
On Wed, 2025-09-24 at 08:30 +0200, Richard Biener via Gcc wrote: > >   > > 2. Implement mulv2di3 for this specific target (which does exactly > > what > > scalar code would do), and let expand pass (expand_mult) take care > > of > > converting mult to shift/add/sub. > > The expand pass wouldn't d

Re: Regarding vectorize pattern recognition for vector code

2025-10-18 Thread Avinash Jayakar via Gcc
On Thu, 2025-09-25 at 20:18 +0530, Avinash Jayakar wrote: > On Wed, 2025-09-24 at 08:30 +0200, Richard Biener via Gcc wrote: > > > >   > > > 2. Implement mulv2di3 for this specific target (which does > > > exactly > > > what > > > scalar code would do), and let expand pass (expand_mult) take > > >

Re: Regarding vectorize pattern recognition for vector code

2025-10-17 Thread Richard Biener via Gcc
On Thu, 25 Sep 2025, Avinash Jayakar wrote: > On Wed, 2025-09-24 at 08:30 +0200, Richard Biener via Gcc wrote: > > > >   > > > 2. Implement mulv2di3 for this specific target (which does exactly > > > what > > > scalar code would do), and let expand pass (expand_mult) take care > > > of > > > conv

Re: Regarding vectorize pattern recognition for vector code

2025-10-01 Thread Richard Biener via Gcc
On Mon, 29 Sep 2025, Avinash Jayakar wrote: > On Thu, 2025-09-25 at 20:18 +0530, Avinash Jayakar wrote: > > On Wed, 2025-09-24 at 08:30 +0200, Richard Biener via Gcc wrote: > > > > > >   > > > > 2. Implement mulv2di3 for this specific target (which does > > > > exactly > > > > what > > > > scalar

Regarding vectorize pattern recognition for vector code

2025-09-25 Thread Avinash Jayakar via Gcc
Hi, I had a question regarding the function vect_pattern_recog that is triggered in the slp/vectorization pass. In case the original code is already in vector form, for example below is the original gimple dump of a vector function ;; Function lshift1_64 (null) ;; enabled by -tree-original {

Re: Regarding vectorize pattern recognition for vector code

2025-09-25 Thread Avinash Jayakar via Gcc
On Wed, 2025-09-24 at 08:30 +0200, Richard Biener via Gcc wrote: > >   > > 2. Implement mulv2di3 for this specific target (which does exactly > > what > > scalar code would do), and let expand pass (expand_mult) take care > > of > > converting mult to shift/add/sub. > > The expand pass wouldn't d

Re: Regarding vectorize pattern recognition for vector code

2025-09-24 Thread Richard Biener via Gcc
On Wed, 24 Sep 2025, Avinash Jayakar wrote: > On Tue, 2025-09-23 at 15:56 +0200, Richard Biener wrote: > > On Tue, 23 Sep 2025, Avinash Jayakar wrote: > > > > > Hi, > > > > > > I had a question regarding the function vect_pattern_recog that is > > > triggered in the slp/vectorization pass. > >

Re: Regarding vectorize pattern recognition for vector code

2025-09-23 Thread Avinash Jayakar via Gcc
On Tue, 2025-09-23 at 15:56 +0200, Richard Biener wrote: > On Tue, 23 Sep 2025, Avinash Jayakar wrote: > > > Hi, > > > > I had a question regarding the function vect_pattern_recog that is > > triggered in the slp/vectorization pass. > > In case the original code is already in vector form, for ex

Re: Regarding vectorize pattern recognition for vector code

2025-09-23 Thread Richard Biener via Gcc
On Tue, 23 Sep 2025, Avinash Jayakar wrote: > Hi, > > I had a question regarding the function vect_pattern_recog that is > triggered in the slp/vectorization pass. > In case the original code is already in vector form, for example below > is the original gimple dump of a vector function > > >