Re: [PATCH 2/5] Vect: Introduce MASK_LEN_STRIDED_LOAD{STORE} to loop vectorizer

2024-10-29 Thread Richard Biener
On Wed, Oct 23, 2024 at 12:47 PM wrote: > > From: Pan Li > > This patch would like to allow generation of MASK_LEN_STRIDED_LOAD{STORE} IR > for invariant stride memory access. For example as below > > void foo (int * __restrict a, int * __restrict b, int stride, int n) > { > for (int i = 0;

[PATCH 2/5] Vect: Introduce MASK_LEN_STRIDED_LOAD{STORE} to loop vectorizer

2024-10-23 Thread pan2 . li
From: Pan Li This patch would like to allow generation of MASK_LEN_STRIDED_LOAD{STORE} IR for invariant stride memory access. For example as below void foo (int * __restrict a, int * __restrict b, int stride, int n) { for (int i = 0; i < n; i++) a[i*stride] = b[i*stride] + 100; } Bef