Re: [PATCH] VECT: Add COND_LEN_* operations for loop control with length targets

2023-07-10 Thread Kewen.Lin via Gcc-patches
Hi Juzhe, > Hi, Kewen. > > You mean COND_LEN_* family I added is unlikely used by power in the future? Since AFAIK there is no plan to extend len family on Power, it's very likely that Power will have no chance to leverage them, so yes. > Could you revise them to make it possible used by

Re: Re: [PATCH] VECT: Add COND_LEN_* operations for loop control with length targets

2023-07-10 Thread juzhe.zh...@rivai.ai
it with dummy mask = { -1, -1, ..., -1}. Thanks. juzhe.zh...@rivai.ai From: Kewen.Lin Date: 2023-07-11 09:17 To: Richard Biener CC: gcc-patches; richard.sandiford; linkw; krebbel; Ju-Zhe Zhong; Segher Boessenkool; David Edelsohn; Peter Bergner Subject: Re: [PATCH] VECT: Add COND_LEN_* operations for loop

Re: [PATCH] VECT: Add COND_LEN_* operations for loop control with length targets

2023-07-10 Thread Kewen.Lin via Gcc-patches
on 2023/7/10 18:40, Richard Biener wrote: > On Fri, 7 Jul 2023, juzhe.zh...@rivai.ai wrote: > >> From: Ju-Zhe Zhong >> >> Hi, Richard and Richi. >> >> This patch is adding cond_len_* operations pattern for target support >> loop control with length. > > It looks mostly OK - the probably

Re: Re: [PATCH] VECT: Add COND_LEN_* operations for loop control with length targets

2023-07-10 Thread juzhe.zh...@rivai.ai
COND_LEN_* operations for loop control with length targets On Fri, 7 Jul 2023, juzhe.zh...@rivai.ai wrote: > From: Ju-Zhe Zhong > > Hi, Richard and Richi. > > This patch is adding cond_len_* operations pattern for target support > loop control with length. It looks mostly OK - t

Re: [PATCH] VECT: Add COND_LEN_* operations for loop control with length targets

2023-07-10 Thread Richard Biener via Gcc-patches
On Fri, 7 Jul 2023, juzhe.zh...@rivai.ai wrote: > From: Ju-Zhe Zhong > > Hi, Richard and Richi. > > This patch is adding cond_len_* operations pattern for target support > loop control with length. It looks mostly OK - the probably obvious question is with rearding to the "missing" bias

[PATCH] VECT: Add COND_LEN_* operations for loop control with length targets

2023-07-06 Thread juzhe . zhong
From: Ju-Zhe Zhong Hi, Richard and Richi. This patch is adding cond_len_* operations pattern for target support loop control with length. These patterns will be used in these following case: 1. Integer division: void f (int32_t *restrict a, int32_t *restrict b, int32_t *restrict c, int