Re: [PATCH] vect: Replace hardcoded weight factor with param

2021-05-19 Thread Segher Boessenkool
On Wed, May 19, 2021 at 10:15:49AM +0200, Richard Biener wrote: > On Wed, May 19, 2021 at 8:20 AM Kewen.Lin wrote: > "weight_factor" is kind-of double-speak "Weighting factor" (with -ing) is a standard term actually. (But cost_factor of course is better and avoids all that :-) ) Segher

Re: [PATCH] vect: Replace hardcoded weight factor with param

2021-05-19 Thread Richard Biener via Gcc-patches
On Wed, May 19, 2021 at 8:20 AM Kewen.Lin wrote: > > Hi, > > This patch is to replace the current hardcoded weight factor 50 > for those statements in an inner loop relative to the loop being > vectorized with a specific parameter vect-inner-loop-weight-factor. > > The motivation behind this chang

[PATCH] vect: Replace hardcoded weight factor with param

2021-05-18 Thread Kewen.Lin via Gcc-patches
Hi, This patch is to replace the current hardcoded weight factor 50 for those statements in an inner loop relative to the loop being vectorized with a specific parameter vect-inner-loop-weight-factor. The motivation behind this change is: if targets want to have one unique function to gather some