RE: [PATCH] ix86: Suggest unroll factor for loop vectorization

2022-11-02 Thread Cui, Lili via Gcc-patches
> > > +@item x86-vect-unroll-min-ldst-threshold > > > +The vectorizer will check with target information to determine > > > +whether unroll it. This parameter is used to limit the mininum of > > > +loads and stores in the main loop. > > > > > > It's odd to "limit" the minimum number of something.

Re: [PATCH] ix86: Suggest unroll factor for loop vectorization

2022-10-28 Thread Richard Biener via Gcc-patches
On Wed, Oct 26, 2022 at 1:38 PM Cui, Lili wrote: > > Hi Richard, > > > +@item x86-vect-unroll-min-ldst-threshold > > +The vectorizer will check with target information to determine whether > > +unroll it. This parameter is used to limit the mininum of loads and > > +stores in the main loop. > > >

RE: [PATCH] ix86: Suggest unroll factor for loop vectorization

2022-10-26 Thread Cui, Lili via Gcc-patches
Hi Richard, > +@item x86-vect-unroll-min-ldst-threshold > +The vectorizer will check with target information to determine whether > +unroll it. This parameter is used to limit the mininum of loads and > +stores in the main loop. > > It's odd to "limit" the minimum number of something. I think th

Re: [PATCH] ix86: Suggest unroll factor for loop vectorization

2022-10-25 Thread Richard Biener via Gcc-patches
On Tue, Oct 25, 2022 at 7:46 AM Hongtao Liu wrote: > > Any comments? +@item x86-vect-unroll-min-ldst-threshold +The vectorizer will check with target information to determine whether unroll +it. This parameter is used to limit the mininum of loads and stores in the main +loop. It's odd to "limit

Re: [PATCH] ix86: Suggest unroll factor for loop vectorization

2022-10-24 Thread Hongtao Liu via Gcc-patches
Any comments? On Mon, Oct 24, 2022 at 10:46 AM Cui,Lili via Gcc-patches wrote: > > Hi Hongtao, > > This patch introduces function finish_cost and > determine_suggested_unroll_factor for x86 backend, to make it be > able to suggest the unroll factor for a given loop being vectorized. > Referring t