Re: Re: [PATCH V2] VECT: Apply COND_LEN_* into vectorizable_operation

2023-07-12 Thread juzhe.zh...@rivai.ai
E[i]; + } +*/ Thanks. juzhe.zh...@rivai.ai From: Richard Biener Date: 2023-07-12 18:59 To: juzhe.zh...@rivai.ai CC: richard.sandiford; gcc-patches Subject: Re: Re: [PATCH V2] VECT: Apply COND_LEN_* into vectorizable_operation On Wed, 12 Jul 2023, juzhe.zh...@rivai.ai wrote: > Thank yo

Re: Re: [PATCH V2] VECT: Apply COND_LEN_* into vectorizable_operation

2023-07-12 Thread juzhe.zh...@rivai.ai
i] CODE B[i]; else LHS[i] = ELSE[i]; } Does it look reasonable to you? Thanks. juzhe.zh...@rivai.ai From: Richard Sandiford Date: 2023-07-12 18:53 To: juzhe.zhong CC: gcc-patches; rguenther Subject: Re: [PATCH V2] VECT: Apply COND_LEN_* into vectorizable_operation juzhe.zh...@rivai.ai

Re: Re: [PATCH V2] VECT: Apply COND_LEN_* into vectorizable_operation

2023-07-12 Thread juzhe.zh...@rivai.ai
CT_VL, at the last iteration, it's probably partial vector, so the element >= length should keep the original value. Thanks. juzhe.zh...@rivai.ai From: Richard Sandiford Date: 2023-07-12 18:53 To: juzhe.zhong CC: gcc-patches; rguenther Subject: Re: [PATCH V2] VECT: Apply CO

Re: Re: [PATCH V2] VECT: Apply COND_LEN_* into vectorizable_operation

2023-07-12 Thread Richard Biener via Gcc-patches
rivai.ai > > From: Richard Sandiford > Date: 2023-07-12 18:53 > To: juzhe.zhong > CC: gcc-patches; rguenther > Subject: Re: [PATCH V2] VECT: Apply COND_LEN_* into vectorizable_operation > juzhe.zh...@rivai.ai writes: > > From: Ju-Zhe Zhong > > > > Hi, Richa

Re: Re: [PATCH V2] VECT: Apply COND_LEN_* into vectorizable_operation

2023-07-12 Thread juzhe.zh...@rivai.ai
Thank you so much. I am gonna wait for Richi's final approval. Thanks. juzhe.zh...@rivai.ai From: Richard Sandiford Date: 2023-07-12 18:53 To: juzhe.zhong CC: gcc-patches; rguenther Subject: Re: [PATCH V2] VECT: Apply COND_LEN_* into vectorizable_operation juzhe.zh...@rivai.ai writes: &

Re: [PATCH V2] VECT: Apply COND_LEN_* into vectorizable_operation

2023-07-12 Thread Richard Sandiford via Gcc-patches
juzhe.zh...@rivai.ai writes: > From: Ju-Zhe Zhong > > Hi, Richard and Richi. > As we disscussed before, COND_LEN_* patterns were added for multiple > situations. > This patch apply CON_LEN_* for the following situation: > > Support for the situation that in "vectorizable_operation": > /* If ope

[PATCH V2] VECT: Apply COND_LEN_* into vectorizable_operation

2023-07-12 Thread juzhe . zhong
From: Ju-Zhe Zhong Hi, Richard and Richi. As we disscussed before, COND_LEN_* patterns were added for multiple situations. This patch apply CON_LEN_* for the following situation: Support for the situation that in "vectorizable_operation": /* If operating on inactive elements could generate spu