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

2023-07-18 Thread Lehua Ding
Committed to the trunk, thanks Robin.

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

2023-07-18 Thread Robin Dapp via Gcc-patches
OK. Regards Robin

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

2023-07-18 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