Re: Re: [PATCH] RISC-V: Enable SLP un-order reduction

2023-07-18 Thread juzhe.zh...@rivai.ai
: Re: [PATCH] RISC-V: Enable SLP un-order reduction Hi Juzhe, > +;; - > +;; [INT,FP] Initialize from individual elements > +;; - >

Re: [PATCH] RISC-V: Enable SLP un-order reduction

2023-07-18 Thread Robin Dapp via Gcc-patches
Hi Juzhe, > +;; - > +;; [INT,FP] Initialize from individual elements > +;; - > +;; Includes: > +;; - vslide1up.vx/vfslide1up.vf > +;; ---

[PATCH] RISC-V: Enable SLP un-order reduction

2023-07-17 Thread Juzhe-Zhong
This patch is to enable SLP un-order reduction autao-vectorization Consider this following case: int __attribute__((noipa)) add_loop (int *x, int n, int res) { for (int i = 0; i < n; ++i) { res += x[i * 2]; res += x[i * 2 + 1]; } return res; } --param riscv-autovec-prefer