RE: [PATCH] VECT: Add vec_mask_len_{load_lanes,store_lanes} patterns

2023-08-11 Thread Li, Pan2 via Gcc-patches
Committed, thanks Richard. Pan -Original Message- From: Gcc-patches On Behalf Of Richard Biener via Gcc-patches Sent: Friday, August 11, 2023 6:23 PM To: Juzhe-Zhong Cc: gcc-patches@gcc.gnu.org; richard.sandif...@arm.com Subject: Re: [PATCH] VECT: Add vec_mask_len_{load_lanes

Re: [PATCH] VECT: Add vec_mask_len_{load_lanes,store_lanes} patterns

2023-08-11 Thread Richard Biener via Gcc-patches
On Fri, 11 Aug 2023, Juzhe-Zhong wrote: > This patch is add vec_mask_len_{load_lanes,store_stores} autovectorization > patterns. > > Here we want to support this following autovectorization: > > #include > void > foo (int8_t *__restrict a, > int8_t *__restrict b, > int8_t *__restrict cond, >

[PATCH] VECT: Add vec_mask_len_{load_lanes,store_lanes} patterns

2023-08-10 Thread Juzhe-Zhong
This patch is add vec_mask_len_{load_lanes,store_stores} autovectorization patterns. Here we want to support this following autovectorization: #include void foo (int8_t *__restrict a, int8_t *__restrict b, int8_t *__restrict cond, int n) { for (intptr_t i = 0; i < n; ++i) { if (con