RE: [PATCH] VECT: Apply LEN_FOLD_EXTRACT_LAST into loop vectorizer

2023-08-24 Thread Li, Pan2 via Gcc-patches
Committed, thanks Richard. Pan -Original Message- From: Gcc-patches On Behalf Of Richard Biener via Gcc-patches Sent: Thursday, August 24, 2023 2:39 PM To: Juzhe-Zhong Cc: gcc-patches@gcc.gnu.org; richard.sandif...@arm.com Subject: Re: [PATCH] VECT: Apply LEN_FOLD_EXTRACT_LAST into

Re: [PATCH] VECT: Apply LEN_FOLD_EXTRACT_LAST into loop vectorizer

2023-08-23 Thread Richard Biener via Gcc-patches
On Thu, 24 Aug 2023, Juzhe-Zhong wrote: > Hi. > > This patch is apply LEN_FOLD_EXTRACT_LAST into loop vectorizer. > > Consider this following case: > #include > > #define N 32 > > /* Simple condition reduction. */ > > int __attribute__ ((noinline, noclone)) > condition_reduction (int *a, in

[PATCH] VECT: Apply LEN_FOLD_EXTRACT_LAST into loop vectorizer

2023-08-23 Thread Juzhe-Zhong
Hi. This patch is apply LEN_FOLD_EXTRACT_LAST into loop vectorizer. Consider this following case: #include #define N 32 /* Simple condition reduction. */ int __attribute__ ((noinline, noclone)) condition_reduction (int *a, int min_v) { int last = 66; /* High start value. */ for (int i