RE: [PATCH] GIMPLE_FOLD: Apply LEN_MASK_{LOAD, STORE} into GIMPLE_FOLD

2023-06-24 Thread Li, Pan2 via Gcc-patches
LEN_MASK_{LOAD, STORE} into GIMPLE_FOLD On 6/23/23 07:48, juzhe.zh...@rivai.ai wrote: > From: Ju-Zhe Zhong > > Hi, since we are going to have LEN_MASK_{LOAD,STORE} into loopVectorizer. > > Currenly, > 1. we can fold MASK_{LOAD,STORE} into MEM when mask is all ones. > 2. we can

Re: [PATCH] GIMPLE_FOLD: Apply LEN_MASK_{LOAD, STORE} into GIMPLE_FOLD

2023-06-24 Thread Jeff Law via Gcc-patches
On 6/23/23 07:48, juzhe.zh...@rivai.ai wrote: From: Ju-Zhe Zhong Hi, since we are going to have LEN_MASK_{LOAD,STORE} into loopVectorizer. Currenly, 1. we can fold MASK_{LOAD,STORE} into MEM when mask is all ones. 2. we can fold LEN_{LOAD,STORE} into MEM when (len - bias) is VF. Now, I thi

[PATCH] GIMPLE_FOLD: Apply LEN_MASK_{LOAD,STORE} into GIMPLE_FOLD

2023-06-23 Thread juzhe . zhong
From: Ju-Zhe Zhong Hi, since we are going to have LEN_MASK_{LOAD,STORE} into loopVectorizer. Currenly, 1. we can fold MASK_{LOAD,STORE} into MEM when mask is all ones. 2. we can fold LEN_{LOAD,STORE} into MEM when (len - bias) is VF. Now, I think it makes sense that we can support fold LEN_MA