Re: Question about the SLP vectorizer failed to perform automatic vectorization in one case

2024-05-27 Thread Hanke Zhang via Gcc
Hi Biener, Thanks for your help! I have already open a bugreport here https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115252. Thanks Hanke Zhang Richard Biener 于2024年5月27日周一 21:14写道: > > On Sat, May 25, 2024 at 3:08 PM Hanke Zhang via Gcc wrote: > > > > Hi, > > I'm trying to studing the automati

Re: Question about the SLP vectorizer failed to perform automatic vectorization in one case

2024-05-27 Thread Richard Biener via Gcc
On Sat, May 25, 2024 at 3:08 PM Hanke Zhang via Gcc wrote: > > Hi, > I'm trying to studing the automatic vectorization optimization in GCC, > but I found one case that SLP vectorizer failed to do such things. > > Here is the sample code: (also a simplification version of a function > from the 625/

Question about the SLP vectorizer failed to perform automatic vectorization in one case

2024-05-25 Thread Hanke Zhang via Gcc
Hi, I'm trying to studing the automatic vectorization optimization in GCC, but I found one case that SLP vectorizer failed to do such things. Here is the sample code: (also a simplification version of a function from the 625/525.x264 source code in SPEC CPU 2017) void pixel_sub_wxh(int16_t *diff,