Re: [PATCH 1/6] vect: Add a function to check lane-reducing code [PR114440]

2024-05-31 Thread Richard Biener
On Thu, May 30, 2024 at 4:45 PM Feng Xue OS wrote: > > This is a patch that is split out from > https://gcc.gnu.org/pipermail/gcc-patches/2024-May/652626.html. > > Check if an operation is lane-reducing requires comparison of code against > three kinds (DOT_PROD_EXPR/WIDEN_SUM_EXPR/SAD_EXPR). Ad

[PATCH 1/6] vect: Add a function to check lane-reducing code [PR114440]

2024-05-30 Thread Feng Xue OS
This is a patch that is split out from https://gcc.gnu.org/pipermail/gcc-patches/2024-May/652626.html. Check if an operation is lane-reducing requires comparison of code against three kinds (DOT_PROD_EXPR/WIDEN_SUM_EXPR/SAD_EXPR). Add an utility function to make source coding for the check handy