RE: [PATCH V2] RISC-V: Support non-SLP unordered reduction

2023-07-17 Thread Li, Pan2 via Gcc-patches
@gmail.com Subject: Re: [PATCH V2] RISC-V: Support non-SLP unordered reduction LGTM, thanks :) On Mon, Jul 17, 2023 at 4:20 PM Juzhe-Zhong wrote: > > This patch add reduc_*_scal to support reduction auto-vectorization. > > Use COND_LEN_* + reduc_*_scal to support unordered non-SLP auto-v

Re: [PATCH V2] RISC-V: Support non-SLP unordered reduction

2023-07-17 Thread Kito Cheng via Gcc-patches
LGTM, thanks :) On Mon, Jul 17, 2023 at 4:20 PM Juzhe-Zhong wrote: > > This patch add reduc_*_scal to support reduction auto-vectorization. > > Use COND_LEN_* + reduc_*_scal to support unordered non-SLP auto-vectorization. > > Consider this following case: > int __attribute__((noipa)) > and_loop

[PATCH V2] RISC-V: Support non-SLP unordered reduction

2023-07-17 Thread Juzhe-Zhong
This patch add reduc_*_scal to support reduction auto-vectorization. Use COND_LEN_* + reduc_*_scal to support unordered non-SLP auto-vectorization. Consider this following case: int __attribute__((noipa)) and_loop (int32_t * __restrict x, int32_t n, int res) { for (int i = 0; i < n; ++i) r